Browse Source

Merge pull request #378 from mrichar1/extra_config

Handle other non-iterable values like int/float.
master
Niels Abspoel 6 years ago
parent
commit
d87d858a87
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      salt/files/minion.d/f_defaults.conf

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



{%- for configname in cfg_minion %} {%- for configname in cfg_minion %}
{%- if configname not in reserved_keys and configname not in default_keys %} {%- 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 %}
{%- if cfg_minion[configname] is iterable and cfg_minion[configname] is not string %}
{{ configname }}: {{ configname }}:
{%- for item in cfg_minion[configname] %} {%- for item in cfg_minion[configname] %}
- {{ item }} - {{ item }}
{%- endfor -%} {%- endfor -%}
{%- else %}
{{ configname }}: {{ cfg_minion[configname]|json }}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}

Loading…
Cancel
Save