Merge pull request #134 from edvinasme/pillar-roots-format
Fix pillar_roots configuration format in master
This commit is contained in:
commit
efd15e0896
@ -642,27 +642,27 @@ gitfs_remotes:
|
|||||||
# Pillar is laid out in the same fashion as the file server, with environments,
|
# Pillar is laid out in the same fashion as the file server, with environments,
|
||||||
# a top file and sls files. However, pillar data does not need to be in the
|
# a top file and sls files. However, pillar data does not need to be in the
|
||||||
# highstate format, and is generally just key/value pairs.
|
# highstate format, and is generally just key/value pairs.
|
||||||
{% if 'pillar_roots' in cfg_master %}
|
{% if 'pillar_roots' in cfg_master -%}
|
||||||
pillar_roots:
|
pillar_roots:
|
||||||
{% for name, roots in cfg_master['pillar_roots']|dictsort %}
|
{%- for name, roots in cfg_master['pillar_roots']|dictsort %}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots %}
|
{%- for dir in roots %}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
|
{%- endfor -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{%- elif 'pillar_roots' in cfg_salt -%}
|
||||||
{% elif 'pillar_roots' in cfg_salt %}
|
|
||||||
pillar_roots:
|
pillar_roots:
|
||||||
{% for name, roots in cfg_salt['pillar_roots']|dictsort %}
|
{%- for name, roots in cfg_salt['pillar_roots']|dictsort -%}
|
||||||
{{ name }}:
|
{{ name }}:
|
||||||
{% for dir in roots %}
|
{%- for dir in roots -%}
|
||||||
- {{ dir }}
|
- {{ dir }}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
{% else %}
|
{%- else -%}
|
||||||
#pillar_roots:
|
#pillar_roots:
|
||||||
# base:
|
# base:
|
||||||
# - /srv/pillar
|
# - /srv/pillar
|
||||||
{% endif %}
|
{%- endif %}
|
||||||
#
|
#
|
||||||
{% if 'ext_pillar' in cfg_master %}
|
{% if 'ext_pillar' in cfg_master %}
|
||||||
ext_pillar:
|
ext_pillar:
|
||||||
|
Loading…
Reference in New Issue
Block a user