Skip to content

Commit

Permalink
fix(master): master.d template to support saltclass ext_pillar
Browse files Browse the repository at this point in the history
  • Loading branch information
rfairburn committed Nov 2, 2021
1 parent 99b1469 commit 52f97f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/files/master.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1207,12 +1207,16 @@ ext_pillar:
{%- for parameter in pillar[key] %}
{%- if parameter is iterable and parameter is not string %}
{%- for param, children in parameter.items() %}
{%- if children is string %}
- {{ param }}: {{ children }}
{%- else %}
- {{ param }}:
{%- for child in children %}
{%- for key, value in child.items() %}
- {{ key }}: {{ value }}
{%- endfor -%}
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
{%- else %}
- {{ parameter }}
Expand Down
2 changes: 2 additions & 0 deletions test/salt/pillar/salt.sls
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ salt:
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
minion:
master: localhost
fileserver_backend:
Expand Down

0 comments on commit 52f97f9

Please sign in to comment.