From 02f7b279a1e6cb6f63c3d1649068476f866d160d Mon Sep 17 00:00:00 2001 From: Simon Lloyd Date: Sat, 8 Aug 2015 17:58:45 +0200 Subject: [PATCH] Only watch salt-api package if install_packages=true Also watch salt-api pkg instead of salt-master one. --- salt/api.sls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/api.sls b/salt/api.sls index 812f243..e6b387e 100644 --- a/salt/api.sls +++ b/salt/api.sls @@ -12,5 +12,7 @@ salt-api: - name: {{ salt_settings.api_service }} - require: - service: {{ salt_settings.master_service }} +{% if salt_settings.install_packages %} - watch: - - pkg: salt-master + - pkg: salt-api +{% endif %}