salt-formula/salt/api.sls

17 lines
377 B
Plaintext
Raw Normal View History

{% from "salt/map.jinja" import salt_settings with context %}
2015-03-07 23:43:32 +01:00
include:
- salt.master
salt-api:
{% if salt_settings.install_packages %}
2015-03-07 23:43:32 +01:00
pkg.installed:
- name: {{ salt_settings.salt_api }}
{% endif %}
2015-03-07 23:43:32 +01:00
service.running:
- name: {{ salt_settings.api_service }}
2015-03-07 23:43:32 +01:00
- require:
2015-03-28 22:29:01 +01:00
- service: {{ salt_settings.master_service }}
2015-03-07 23:43:32 +01:00
- watch:
- pkg: salt-master