瀏覽代碼

Merge pull request #17 from KennethWilke/master

Added module_config section to minion template
tags/v0.57.0
David Boucha 11 年之前
父節點
當前提交
bea689e977
共有 2 個檔案被更改,包括 14 行新增1 行删除
  1. +9
    -0
      pillar.example
  2. +5
    -1
      salt/files/minion

+ 9
- 0
pillar.example 查看文件

@@ -10,3 +10,12 @@ salt:
- /srv/salt
minion:
master: salt
module_config:
test: True
test.foo: foo
test.bar:
- baz
- quo
test.baz:
spam: sausage
cheese: bread

+ 5
- 1
salt/files/minion 查看文件

@@ -509,7 +509,11 @@ pillar_roots:
#
# A dict for the test module:
#test.baz: {spam: sausage, cheese: bread}

{%- if 'module_config' in minion %}
{%- for modkey, modval in minion.module_config.items() %}
{{ modkey }}: {{ modval }}
{%- endfor %}
{%- endif %}

###### Update settings ######
###########################################

Loading…
取消
儲存