0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-24 20:16:10 +01:00
salt-formula/salt/api.sls
John Kristensen 43663fec1b 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.
2016-12-08 12:19:53 +11:00

21 lines
471 B
Plaintext

{% from "salt/map.jinja" import salt_settings with context %}
include:
- salt.master
salt-api:
{% if salt_settings.install_packages %}
pkg.installed:
- name: {{ salt_settings.salt_api }}
{% endif %}
service.running:
- enable: True
- name: {{ salt_settings.api_service }}
- require:
- service: {{ salt_settings.master_service }}
- watch:
{% if salt_settings.install_packages %}
- pkg: salt-api
{% endif %}
- file: salt-master