From 9404ebf915438417f2b59abccd2f2775d32ebf0c Mon Sep 17 00:00:00 2001 From: Kenneth Wilke Date: Tue, 3 Sep 2013 09:45:24 -0500 Subject: [PATCH] Added module_config section to minion template --- pillar.example | 9 +++++++++ salt/files/minion | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pillar.example b/pillar.example index d3ccb00..48d2f45 100644 --- a/pillar.example +++ b/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 diff --git a/salt/files/minion b/salt/files/minion index 1f95e37..3a625e5 100644 --- a/salt/files/minion +++ b/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 ###### ###########################################