Compare commits

..

1 Commits

Author SHA1 Message Date
3f3fae0f4a
Manage salt-minion package, service and config
Restart the service after upgrading the package or modifying the minion
configuration file.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-12 16:29:59 +01:00

View File

@ -8,10 +8,7 @@ salt-minion:
- require:
- pkg: salt-minion
- file: /etc/salt/minion
restart-salt-minion:
service.restart:
- name: salt-minion
- order: last
- no_block: true
- watch:
@ -33,6 +30,7 @@ restart-salt-minion:
check-minion-config:
cmd.run:
- name: sudo salt-call --local --skip-grains test.ping
- name: sudo salt-call --local --skip-grains test.ping:
- watch:
- file: /etc/salt/minion