Compare commits

..

1 Commits

Author SHA1 Message Date
eab6e1b85f
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:53:35 +01:00

View File

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