Browse Source

fix windows minion restart command

tags/v0.57.0
Dafydd Jones 7 years ago
parent
commit
d987901db2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/minion.sls

+ 2
- 2
salt/minion.sls View File

cmd.run: cmd.run:
{%- if grains['saltversioninfo'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %} {%- if grains['saltversioninfo'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %}
{%- if grains['kernel'] == 'Windows' %} {%- if grains['kernel'] == 'Windows' %}
- name: '{{ salt_settings.config_path }}\salt-call.bat --local service.restart {{ salt_settings.minion_service }}'
- name: 'salt-call.bat --local service.restart {{ salt_settings.minion_service }}'
{%- else %} {%- else %}
- name: 'salt-call --local service.restart {{ salt_settings.minion_service }} --out-file /dev/null' - name: 'salt-call --local service.restart {{ salt_settings.minion_service }} --out-file /dev/null'
- bg: True
{%- endif %} {%- endif %}
- bg: True
{%- else %} {%- else %}
{%- if grains['kernel'] == 'Windows' %} {%- if grains['kernel'] == 'Windows' %}
- name: 'start powershell "Restart-Service -Name {{ salt_settings.minion_service }}"' - name: 'start powershell "Restart-Service -Name {{ salt_settings.minion_service }}"'

Loading…
Cancel
Save