Skip to content

Commit

Permalink
Merge pull request #55 from OneID/feature/gitfs-repo-options
Browse files Browse the repository at this point in the history
Allow individual repo options for gitfs_remotes
  • Loading branch information
nmadhok committed Oct 24, 2014
2 parents 2013d4b + 9dab2f9 commit 3e4d9d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ salt:
- roots
gitfs_remotes:
- git://github.com/saltstack-formulas/salt-formula.git
- base: develop
file_roots:
base:
- /srv/salt
Expand Down
14 changes: 13 additions & 1 deletion salt/files/master.d/_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3e4d9d0

Please sign in to comment.