瀏覽代碼

Merge pull request #375 from mrichar1/extra_config

Handle extra config where value is a list (minion)
tags/v0.57.0
Niels Abspoel 6 年之前
父節點
當前提交
a1a65ce1e9
No account linked to committer's email address
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      salt/files/minion.d/f_defaults.conf

+ 7
- 0
salt/files/minion.d/f_defaults.conf 查看文件

@@ -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 %}

Loading…
取消
儲存