Have salt-api service watch the master config files

The salt-api service is configured using the master config files but is
not restarted when the master is restarted. We need the salt-api service
to watch the master config files to ensure that any config changes are
picked up.
This commit is contained in:
John Kristensen 2016-12-02 17:28:30 +11:00
parent f3f2251d75
commit 43663fec1b
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ salt-api:
- name: {{ salt_settings.api_service }}
- require:
- service: {{ salt_settings.master_service }}
{% if salt_settings.install_packages %}
- watch:
{% if salt_settings.install_packages %}
- pkg: salt-api
{% endif %}
- file: salt-master