Fixed file_roots config generation with several environment
This commit is contained in:
parent
077cfd6b71
commit
94da2654e2
|
@ -343,20 +343,20 @@ client_acl_blacklist:
|
||||||
# - /srv/salt/prod/states
|
# - /srv/salt/prod/states
|
||||||
{% if 'file_roots' in master -%}
|
{% if 'file_roots' in master -%}
|
||||||
file_roots:
|
file_roots:
|
||||||
{% for name, roots in master['file_roots'].items() -%}
|
{%- for name, roots in master['file_roots']|dictsort %}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots -%}
|
{%- for dir in roots %}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% elif 'file_roots' in salt -%}
|
{% elif 'file_roots' in salt -%}
|
||||||
file_roots:
|
file_roots:
|
||||||
{% for name, roots in salt['file_roots'].items() -%}
|
{%- for name, roots in salt['file_roots']|dictsort %}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots -%}
|
{%- for dir in roots %}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
#file_roots:
|
#file_roots:
|
||||||
# base:
|
# base:
|
||||||
|
@ -513,20 +513,20 @@ gitfs_remotes:
|
||||||
# highstate format, and is generally just key/value pairs.
|
# highstate format, and is generally just key/value pairs.
|
||||||
{% if 'pillar_roots' in master -%}
|
{% if 'pillar_roots' in master -%}
|
||||||
pillar_roots:
|
pillar_roots:
|
||||||
{% for name, roots in master['pillar_roots'].items() -%}
|
{%- for name, roots in master['pillar_roots']|dictsort %}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots -%}
|
{%- for dir in roots %}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% elif 'pillar_roots' in salt -%}
|
{% elif 'pillar_roots' in salt -%}
|
||||||
pillar_roots:
|
pillar_roots:
|
||||||
{% for name, roots in salt['pillar_roots'].items() -%}
|
{%- for name, roots in salt['pillar_roots'].items() -%}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots -%}
|
{%- for dir in roots -%}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% endfor -%}
|
{%- endfor -%}
|
||||||
{% else %}
|
{% else %}
|
||||||
#pillar_roots:
|
#pillar_roots:
|
||||||
# base:
|
# base:
|
||||||
|
|
Loading…
Reference in New Issue