Created
September 26, 2017 14:34
-
-
Save haam3r/85e7a813df1613e19dbe15547436b983 to your computer and use it in GitHub Desktop.
Restart salt-minion in a state without breaking the state run.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
restart_minion: | |
cmd.run: | |
- name: | | |
exec 0>&- | |
exec 1>&- | |
exec 2>&- | |
nohup /bin/sh -c 'sleep 10 && salt-call --local service.restart salt-minion' & | |
- order: last |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment