Merge pull request #375 from mrichar1/extra_config

Handle extra config where value is a list (minion)
This commit is contained in:
Niels Abspoel authored and GitHub committed 2018-06-29 17:06:50 +02:00
commit a1a65ce1e9
1 file changed
+7
+7
View File
@@ -1255,6 +1255,13 @@ alternative.mongo.{{ name }}: {{ value }}
{%- for configname in cfg_minion %}
{%- if configname not in reserved_keys and configname not in default_keys %}
{%- if cfg_minion[configname] is string %}
{{ configname }}: {{ cfg_minion[configname]|json }}
{%- elif cfg_minion[configname] is iterable %}
{{ configname }}:
{%- for item in cfg_minion[configname] %}
- {{ item }}
{%- endfor -%}
{%- endif %}
{%- endif %}
{%- endfor %}