2015-03-17 05:39:32 +01:00
|
|
|
{% from "salt/map.jinja" import salt_settings with context %}
|
2014-07-20 17:05:53 +02:00
|
|
|
|
|
|
|
include:
|
|
|
|
- salt.master
|
|
|
|
|
|
|
|
salt-syndic:
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2014-07-20 17:05:53 +02:00
|
|
|
pkg.installed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.salt_syndic }}
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2015-06-17 17:53:31 +02:00
|
|
|
service.running
|
2014-07-20 17:05:53 +02:00
|
|
|
- require:
|
2015-06-17 17:53:31 +02:00
|
|
|
- service: salt-master
|
2014-07-20 17:05:53 +02:00
|
|
|
- watch:
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2014-07-20 17:05:53 +02:00
|
|
|
- pkg: salt-master
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2015-06-17 17:53:31 +02:00
|
|
|
- file: salt-master
|