salt/minion: only restart salt-minion on config/pkg change
Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
37e659cfc3
commit
8024449e2b
@ -11,10 +11,10 @@ salt-minion:
|
||||
|
||||
restart-salt-minion:
|
||||
cmd.run:
|
||||
- name: "sleep 10 && systemctl restart salt-minion --no-block"
|
||||
- name: sleep 10 && systemctl restart salt-minion
|
||||
- bg: true
|
||||
- order: last
|
||||
- watch:
|
||||
- onchanges:
|
||||
- pkg: salt-minion
|
||||
- file: /etc/salt/minion
|
||||
- require:
|
||||
@ -34,6 +34,7 @@ restart-salt-minion:
|
||||
|
||||
check-minion-config:
|
||||
cmd.run:
|
||||
- name: sudo salt-call --local --skip-grains test.ping
|
||||
- watch:
|
||||
- name: sudo salt-call --local --skip-grains test.true
|
||||
- onchanges:
|
||||
- pkg: salt-minion
|
||||
- file: /etc/salt/minion
|
||||
|
Loading…
Reference in New Issue
Block a user