2015-03-17 05:39:32 +01:00
|
|
|
{% from "salt/map.jinja" import salt_settings with context %}
|
2015-03-07 23:43:32 +01:00
|
|
|
|
|
|
|
include:
|
|
|
|
- salt.master
|
|
|
|
|
|
|
|
salt-api:
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2015-03-07 23:43:32 +01:00
|
|
|
pkg.installed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.salt_api }}
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2015-03-07 23:43:32 +01:00
|
|
|
service.running:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.api_service }}
|
2015-03-07 23:43:32 +01:00
|
|
|
- require:
|
2015-03-17 05:39:32 +01:00
|
|
|
- service: {{ salt_settings.api_service }}
|
2015-03-07 23:43:32 +01:00
|
|
|
- watch:
|
|
|
|
- pkg: salt-master
|