Browse Source

Only watch salt-api package if install_packages=true

Also watch salt-api pkg instead of salt-master one.
master
Simon Lloyd 9 years ago
parent
commit
02f7b279a1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      salt/api.sls

+ 3
- 1
salt/api.sls View File

@@ -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 %}

Loading…
Cancel
Save