CMD.RUN
OR CMD.WAIT
?These two states are often confused. The important thing to remember about them is that cmd.run
states are run each time the SLS file that contains them is applied. If it is more desirable to have a command that only runs after some other state changes, then cmd.wait
does just that. cmd.wait
is designed to watch other states, and is executed when the state it is watching changes. Example:
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.