Ver código fonte

Merge pull request #17 from KennethWilke/master

Added module_config section to minion template
master
David Boucha 11 anos atrás
pai
commit
bea689e977
2 arquivos alterados com 14 adições e 1 exclusões
  1. +9
    -0
      pillar.example
  2. +5
    -1
      salt/files/minion

+ 9
- 0
pillar.example Ver arquivo

@@ -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 Ver arquivo

@@ -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 ######
###########################################

Carregando…
Cancelar
Salvar