Ajouter 'linux/MinionUpgrade.sls'
This commit is contained in:
12
linux/MinionUpgrade.sls
Normal file
12
linux/MinionUpgrade.sls
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Restart Salt Minion:
|
||||||
|
cmd.run:
|
||||||
|
{%- if grains['kernel'] == 'Windows' %}
|
||||||
|
- name: 'start powershell "Restart-Service -Name salt-minion"'
|
||||||
|
{%- else %}
|
||||||
|
# fork and disown the process
|
||||||
|
- name: |-
|
||||||
|
exec 0>&- # close stdin
|
||||||
|
exec 1>&- # close stdout
|
||||||
|
exec 2>&- # close stderr
|
||||||
|
nohup salt-call --local service.restart salt-minion &
|
||||||
|
{%- endif %}
|
||||||
Reference in New Issue
Block a user