Replies: 2 comments 1 reply
-
The answer depends on the specific problem you're having. For the question in the title: Salt often has multiple ways to arrive at a destination, which can be confusing, but allows for a lot of flexibility. In regards to your example, there's The |
Beta Was this translation helpful? Give feedback.
-
It's not about "ways to reach", it's about being needlessly cumbersome and not-terse in these very ways (or vice versa). If same result can be reached by use of the logical inversion, why is there another "keyword" which is "effectively the inversion"? And even so, okay, let's have 10 additional "keywords" for different combos of logicals — still what problem is to support logical operations then anyways?
Thank you for this information! I've gone a few times through the https://docs.saltproject.io/en/latest/ref/states/requisites.html before posting and now can only say that if
Not really got this one, but I'm even unsure if it's critical for that simple task I've described in the original message. |
Beta Was this translation helpful? Give feedback.
-
A simple stuff let's do regex-replace only if there's no some specific string already in a file needs to use workarounds like SHELL-spawned "grep -v" — because even grep has logical inversion.
Saltstack is weird.
Beta Was this translation helpful? Give feedback.
All reactions