Sfoglia il codice sorgente

Support of multi-master-of-masters

tags/mcp0.5
Ales Komarek 7 anni fa
parent
commit
2c5e080c01
2 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  1. +13
    -0
      README.rst
  2. +7
    -0
      salt/files/_syndic.conf

+ 13
- 0
README.rst Vedi 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 Vedi 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…
Annulla
Salva