2
0

Merge pull request #519 from rfairburn/fix_ext_pillar

Fix: master.d template to support saltclass ext_pillar config
This commit is contained in:
Imran Iqbal 2021-11-30 23:40:24 +00:00 committed by GitHub
commit 814092bdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 60 additions and 0 deletions

View File

@ -1207,12 +1207,16 @@ ext_pillar:
{%- for parameter in pillar[key] %} {%- for parameter in pillar[key] %}
{%- if parameter is iterable and parameter is not string %} {%- if parameter is iterable and parameter is not string %}
{%- for param, children in parameter.items() %} {%- for param, children in parameter.items() %}
{%- if children is string %}
- {{ param }}: {{ children }}
{%- else %}
- {{ param }}: - {{ param }}:
{%- for child in children %} {%- for child in children %}
{%- for key, value in child.items() %} {%- for key, value in child.items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}
{%- endfor -%} {%- endfor -%}
{%- endfor -%} {%- endfor -%}
{%- endif -%}
{%- endfor -%} {%- endfor -%}
{%- else %} {%- else %}
- {{ parameter }} - {{ parameter }}

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -51,6 +51,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -52,6 +52,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -52,6 +52,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: "/srv/saltclass"
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: "/srv/saltclass"
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: "/srv/saltclass"
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -50,6 +50,8 @@ values:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: "/srv/saltclass"
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -22,6 +22,8 @@ salt:
- /path/to/stack2.cfg - /path/to/stack2.cfg
- reclass: - reclass:
inventory_base_uri: /etc/reclass inventory_base_uri: /etc/reclass
- saltclass:
- path: /srv/saltclass
minion: minion:
master: localhost master: localhost
fileserver_backend: fileserver_backend: