-
-
Save anonymous/726596ed8ee86dabdf70 to your computer and use it in GitHub Desktop.
State to Restart Minions
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
{% if grains['kernel'] == 'Linux' %} | |
restart linux minion: | |
cmd.run: | |
- name: service salt-minion restart | |
{% elif grains['kernel'] == 'Windows' %} | |
restart windows minion: | |
cmd.run: | |
- name: 'start powershell "Restart-Service -Name salt-minion"' | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment