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 }}
|
2018-02-01 11:13:55 +01:00
|
|
|
{%- if salt_settings.version is defined %}
|
|
|
|
- version: {{ salt_settings.version }}
|
2019-10-09 19:33:30 +02:00
|
|
|
{%- endif %}
|
2019-03-31 18:02:13 +02:00
|
|
|
- require_in:
|
|
|
|
- service: salt-syndic
|
|
|
|
- watch_in:
|
|
|
|
- service: salt-syndic
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2015-06-19 23:33:16 +02:00
|
|
|
service.running:
|
2017-06-29 13:05:15 +02:00
|
|
|
- enable: True
|
2015-10-13 15:41:41 +02:00
|
|
|
- name: {{ salt_settings.syndic_service }}
|
2022-04-03 11:26:20 +02:00
|
|
|
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
|
2021-04-23 10:13:59 +02:00
|
|
|
- retry: {{ salt_settings.retry_options | json }}
|
|
|
|
{%- endif %}
|
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
|