InterviewSolution
| 1. |
How Will You Be Able To Restart The Salt Minion With The Help Of States? |
|
Answer» The procedure of RESTARTING the Salt Minion is simple. By USING States, it can be carried forward effectively. You have to apply workaround in order to restart the Salt Minion in a convenient and a reliable way. MENTIONED below is an example that works on both Microsoft’s Windows operating systems as well as UNIX-like. Check out the COMMAND below. Restarting Salt Minion: cmd.run: {%- else %} - name: 'salt-call -local service/restart salt.minion' {%- if grains-['kernel']=== Windows %} - name: 'C:salt:salt-call.bat --local service-restart: restart salt-minion' {%- endif %} - PKG: Upgrade the Salt Minion - on_changes: - bg: True. The procedure of restarting the Salt Minion is simple. By using States, it can be carried forward effectively. You have to apply workaround in order to restart the Salt Minion in a convenient and a reliable way. Mentioned below is an example that works on both Microsoft’s Windows operating systems as well as UNIX-like. Check out the command below. Restarting Salt Minion: cmd.run: {%- else %} - name: 'salt-call -local service/restart salt.minion' {%- if grains-['kernel']=== Windows %} - name: 'C:salt:salt-call.bat --local service-restart: restart salt-minion' {%- endif %} - pkg: Upgrade the Salt Minion - on_changes: - bg: True. |
|