瀏覽代碼

Support of multi-master-of-masters

tags/mcp0.5
Ales Komarek 7 年之前
父節點
當前提交
2c5e080c01
共有 2 個文件被更改,包括 20 次插入0 次删除
  1. +13
    -0
      README.rst
  2. +7
    -0
      salt/files/_syndic.conf

+ 13
- 0
README.rst 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存