Skip to content

Instantly share code, notes, and snippets.

/restart.sls Secret

Created April 28, 2015 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/726596ed8ee86dabdf70 to your computer and use it in GitHub Desktop.
Save anonymous/726596ed8ee86dabdf70 to your computer and use it in GitHub Desktop.
State to Restart Minions
{% 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