Quellcode durchsuchen

Merge pull request #313 from iondulgheru/master

Fix master_tops configuration rendering
tags/v0.57.0
Niels Abspoel vor 7 Jahren
Ursprung
Commit
d6389b8a24
1 geänderte Dateien mit 12 neuen und 5 gelöschten Zeilen
  1. +12
    -5
      salt/files/master.d/f_defaults.conf

+ 12
- 5
salt/files/master.d/f_defaults.conf Datei anzeigen

@@ -746,14 +746,21 @@ rosters:
{%- do default_keys.append('master_tops') %}
master_tops:
{%- for master in cfg_master['master_tops'] -%}
{%- if cfg_master['master_tops'][master] is string %}
{{ master }}: {{ cfg_master['master_tops'][master] }}
{%- else %}
{{ master}}:
{%- if cfg_master['master_tops'][master] is mapping %}
{{ master }}:
{%- for parameter in cfg_master['master_tops'][master] %}
{{ parameter }}: {{ cfg_master['master_tops'][master][parameter] }}
{%- endfor -%}
{%- endif -%}
{%- elif cfg_master['master_tops'][master] is string %}
{{ master }}: {{ cfg_master['master_tops'][master] }}
{%- elif cfg_master['master_tops'][master] is iterable %}
{{ master }}:
{%- for item in cfg_master['master_tops'][master] %}
- {{ item }}
{%- endfor -%}
{%- else %}
{{ master }}: {{ cfg_master['master_tops'][master] }}
{% endif %}
{%- endfor %}
{% endif %}


Laden…
Abbrechen
Speichern