Browse Source

Handle extra config where value is a list.

master
Matthew Richardson 6 years ago
parent
commit
c363aa9e04
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      salt/files/minion.d/f_defaults.conf

+ 7
- 0
salt/files/minion.d/f_defaults.conf View File

@@ -1250,6 +1250,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 %}

Loading…
Cancel
Save