mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-18 06:12:55 +01:00
Added module_config section to minion template
This commit is contained in:
parent
d337cc2784
commit
9404ebf915
@ -10,3 +10,12 @@ salt:
|
|||||||
- /srv/salt
|
- /srv/salt
|
||||||
minion:
|
minion:
|
||||||
master: salt
|
master: salt
|
||||||
|
module_config:
|
||||||
|
test: True
|
||||||
|
test.foo: foo
|
||||||
|
test.bar:
|
||||||
|
- baz
|
||||||
|
- quo
|
||||||
|
test.baz:
|
||||||
|
spam: sausage
|
||||||
|
cheese: bread
|
||||||
|
@ -509,7 +509,11 @@ pillar_roots:
|
|||||||
#
|
#
|
||||||
# A dict for the test module:
|
# A dict for the test module:
|
||||||
#test.baz: {spam: sausage, cheese: bread}
|
#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 ######
|
###### Update settings ######
|
||||||
###########################################
|
###########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user