From 2b51a6f0c39b4df56823afe9d114dab886e3359e Mon Sep 17 00:00:00 2001 From: Ajna Cackovic Date: Thu, 23 Oct 2014 17:39:21 -0700 Subject: [PATCH] Allow repo options to be set per repo for gitfs_remotes in pillar --- salt/files/master.d/_defaults.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/salt/files/master.d/_defaults.conf b/salt/files/master.d/_defaults.conf index d1b97e1..b08292e 100644 --- a/salt/files/master.d/_defaults.conf +++ b/salt/files/master.d/_defaults.conf @@ -484,7 +484,19 @@ fileserver_backend: {% if 'gitfs_remotes' in master -%} gitfs_remotes: {%- for remote in master['gitfs_remotes'] %} - - {{ remote }}{% endfor -%} +{% if remote is mapping %} + {%- for repo, children in remote.iteritems() -%} + - {{ repo }}: + {%- for child in children %} + {% for key, value in child.iteritems() -%} + - {{ key }}: {{ value }} + {%- endfor %} + {%- endfor %} + {%- endfor %} + {%- else -%} + - {{ remote }} +{%- endif %} +{%- endfor %} {%- endif %} # #gitfs_remotes: