Browse Source

Support of multi-master-of-masters

tags/mcp0.5
Ales Komarek 8 years ago
parent
commit
2c5e080c01
2 changed files with 20 additions and 0 deletions
  1. +13
    -0
      README.rst
  2. +7
    -0
      salt/files/_syndic.conf

+ 13
- 0
README.rst View File

@@ -122,6 +122,19 @@ Salt syndic: Lower master
host: master-of-master-host
timeout: 5

Salt syndic: Lower master with multi-master of masters

.. code-block:: yaml

salt:
syndic:
enabled: true
masters:
- host: master-of-master-host1
- host: master-of-master-host2
timeout: 5


Salt master with custom handlers

.. code-block:: yaml

+ 7
- 0
salt/files/_syndic.conf View File

@@ -1,4 +1,11 @@
{%- from "salt/map.jinja" import syndic with context %}

{%- if syndic.masters is defined %}
syndic_master:
{%- for master in syndic.masters %}
- {{ master.host }}
{%- endfor %}
{%- else %}
syndic_master: {{ syndic.master.host }}
{%- endif %}
syndic_wait: {{ syndic.get('timeout', '5') }}

Loading…
Cancel
Save