|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
{% if 'file_roots' in minion -%} |
|
|
{% if 'file_roots' in minion -%} |
|
|
file_roots: |
|
|
file_roots: |
|
|
{% for name, roots in minion['file_roots'].items() -%} |
|
|
|
|
|
|
|
|
{%- for name, roots in minion['file_roots']|dictsort %} |
|
|
{{ name }}: |
|
|
{{ name }}: |
|
|
{% for dir in roots -%} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
|
|
|
{%- for dir in roots %} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{%- 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 -%} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
|
|
|
{%- for dir in roots %} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{%- endfor -%} |
|
|
|
|
|
{%- endfor -%} |
|
|
{% else -%} |
|
|
{% else -%} |
|
|
#file_roots: |
|
|
#file_roots: |
|
|
# base: |
|
|
# base: |
|
|
|
|
|
|
|
|
# also be configured on the minion: |
|
|
# also be configured on the minion: |
|
|
{% if 'pillar_roots' in minion -%} |
|
|
{% if 'pillar_roots' in minion -%} |
|
|
pillar_roots: |
|
|
pillar_roots: |
|
|
{% for name, roots in minion['pillar_roots'].items() -%} |
|
|
|
|
|
|
|
|
{%- for name, roots in minion['pillar_roots']|dictsort %} |
|
|
{{ name }}: |
|
|
{{ name }}: |
|
|
{% for dir in roots -%} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
|
|
|
{%- for dir in roots %} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{%- 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']|dictsort %} |
|
|
{{ name }}: |
|
|
{{ name }}: |
|
|
{% for dir in roots -%} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
{% endfor -%} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
{%- for dir in roots %} |
|
|
|
|
|
- {{ dir }} |
|
|
|
|
|
{%- endfor -%} |
|
|
|
|
|
{%- endfor -%} |
|
|
|
|
|
{% else -%} |
|
|
#pillar_roots: |
|
|
#pillar_roots: |
|
|
# base: |
|
|
# base: |
|
|
# - /srv/pillar |
|
|
|
|
|
|
|
|
# - /srv/salt |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
###### Security settings ##### |
|
|
###### Security settings ##### |