1.

What Is The Other Alternative To Restart Salt Minion With States?

Answer»

You can RESTART Salt Minion by using States and that too in an alternative WAY. Mentioned below are the COMMANDS that you need to follow accordingly. Note that it is more advanced to upgrade Salt’s legacy version.

The alternative way to restart Salt Minion:

cmd.run::

{%- if GRAINS[‘’kernel’’] == ‘WINDOWS’’%}

- name: ‘start powershell ‘Restart-Service -Name salt-minion’’

{%- else %}

- name: |-

:exec 0>&- # close stdout

:exec 1>&- # close stdin

:exec 2>&- # close stderrr

:nohup salt-caall --local service.rstart salt-minion &

{{%- - endif%}}.

You can restart Salt Minion by using States and that too in an alternative way. Mentioned below are the commands that you need to follow accordingly. Note that it is more advanced to upgrade Salt’s legacy version.

The alternative way to restart Salt Minion:

cmd.run::

{%- if grains[‘’kernel’’] == ‘Windows’’%}

- name: ‘start powershell ‘Restart-Service -Name salt-minion’’

{%- else %}

- name: |-

:exec 0>&- # close stdout

:exec 1>&- # close stdin

:exec 2>&- # close stderrr

:nohup salt-caall --local service.rstart salt-minion &

{{%- - endif%}}.



Discussion

No Comment Found