Support of multi-master-of-masters
diff --git a/README.rst b/README.rst
index 7efa94c..68aab70 100644
--- a/README.rst
+++ b/README.rst
@@ -122,6 +122,19 @@
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
diff --git a/salt/files/_syndic.conf b/salt/files/_syndic.conf
index a57e371..cd8d251 100644
--- a/salt/files/_syndic.conf
+++ b/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') }}