From c363aa9e040187b5a0469c98e5bc06b6567a9958 Mon Sep 17 00:00:00 2001 From: Matthew Richardson Date: Tue, 12 Jun 2018 14:39:23 +0100 Subject: [PATCH] Handle extra config where value is a list. --- salt/files/minion.d/f_defaults.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/salt/files/minion.d/f_defaults.conf b/salt/files/minion.d/f_defaults.conf index 4b063fc..7f6d08b 100644 --- a/salt/files/minion.d/f_defaults.conf +++ b/salt/files/minion.d/f_defaults.conf @@ -1250,6 +1250,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 %}