From 43663fec1b6089663f7a2e836a7727c04ecef59b Mon Sep 17 00:00:00 2001 From: John Kristensen Date: Fri, 2 Dec 2016 17:28:30 +1100 Subject: [PATCH] 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. --- salt/api.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/api.sls b/salt/api.sls index 4681c43..278511f 100644 --- a/salt/api.sls +++ b/salt/api.sls @@ -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