0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-27 22:38:10 +01:00

fix(master): master.d template to support saltclass ext_pillar

This commit is contained in:
Robert Fairburn 2021-11-02 09:14:12 -05:00 committed by Imran Iqbal
parent ddd5a0cc50
commit 5b7d7ea70e
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
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: