Browse Source

Change cmd.wait to cmd.run (#336)

Changing cmd.wait to cmd.run as recomended on the documentation: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.wait
tags/v0.57.0
Alexandre Gomes 7 years ago
parent
commit
01564c3753
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/minion.sls

+ 2
- 2
salt/minion.sls View File

pkg.installed: [] pkg.installed: []


restart-salt-minion: restart-salt-minion:
cmd.wait:
cmd.run:
- name: echo salt-call --local service.restart salt-minion | at now + 1 minute - name: echo salt-call --local service.restart salt-minion | at now + 1 minute
- order: last - order: last
- require: - require:
- pkg: at - pkg: at
- watch:
- onchanges:
{%- if salt_settings.install_packages %} {%- if salt_settings.install_packages %}
- pkg: salt-minion - pkg: salt-minion
{%- endif %} {%- endif %}

Loading…
Cancel
Save