Restarting the salt-minion:
# Restart salt-minion in the background (on changes only).
salt-minion_restart:
cmd.run:
- name: 'salt-call --local service.restart salt-minion'
- bg: True
- order: last
- onchanges:
- pkg: salt-minion_package
- file: salt-minion_configuration
Restart the salt-master:
# Restart salt-master in the background (on changes only).
salt-master_restart:
cmd.run:
- name: 'salt-call --local service.restart salt-master'
- bg: True
- order: last
- onchanges:
- pkg: salt-master_packages
- file: salt-master_configuration