0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-18 08:22:54 +01:00

fix: revert to using is mapping in Jinja2

* CVE-2021-25283 enables Jinja2 safe mode, which breaks use of
  `'dict' in x.__class__.__name__` workaround
* Workaround no longer needed as CentOS 6 is EOL
This commit is contained in:
Dafydd Jones 2021-02-28 20:33:21 +00:00
parent 6dbba14a29
commit a89fb3f4aa
52 changed files with 349 additions and 12 deletions

View File

@ -1202,8 +1202,7 @@ ext_pillar:
{%- for key in pillar -%} {%- for key in pillar -%}
{%- if pillar[key] is string %} {%- if pillar[key] is string %}
- {{ key }}: {{ pillar[key] }} - {{ key }}: {{ pillar[key] }}
{#- Workaround for missing `is mapping` on CentOS 6, see #193: #} {%- elif pillar[key] is iterable and pillar[key] is not mapping %}
{%- elif pillar[key] is iterable and 'dict' not in pillar[key].__class__.__name__ %}
- {{ key }}: - {{ key }}:
{%- 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 %}
@ -1219,8 +1218,7 @@ ext_pillar:
- {{ parameter }} - {{ parameter }}
{%- endif %} {%- endif %}
{%- endfor -%} {%- endfor -%}
{#- Workaround for missing `is mapping` on CentOS 6, see #193: #} {%- elif pillar[key] is mapping and pillar[key] is not string %}
{%- elif 'dict' in pillar[key].__class__.__name__ and pillar[key] is not string %}
- {{ key }}: - {{ key }}:
{%- for parameter in pillar[key] %} {%- for parameter in pillar[key] %}
{{ parameter }}: {{pillar[key][parameter]}} {{ parameter }}: {{pillar[key][parameter]}}

View File

@ -12,8 +12,7 @@ lxc.container_profile:
{%- for prof in cfg_prof %} {%- for prof in cfg_prof %}
{{ prof }}: {{ prof }}:
{%- for conf in cfg_prof[prof] %} {%- for conf in cfg_prof[prof] %}
{#- Workaround for missing `is mapping` on CentOS 6, see #193 #} {%- if cfg_prof[prof][conf] is mapping %}
{%- if 'dict' in cfg_prof[prof][conf].__class__.__name__ %}
{{ conf }}: {{ conf }}:
{%- for opt in cfg_prof[prof][conf] %} {%- for opt in cfg_prof[prof][conf] %}
{{ opt }}: {{ cfg_prof[prof][conf][opt] }} {{ opt }}: {{ cfg_prof[prof][conf][opt] }}
@ -30,8 +29,7 @@ lxc.network_profile:
{%- for prof in cfg_net %} {%- for prof in cfg_net %}
{{ prof }}: {{ prof }}:
{%- for conf in cfg_net[prof] -%} {%- for conf in cfg_net[prof] -%}
{#- Workaround for missing `is mapping` on CentOS 6, see #193 #} {%- if cfg_prof[prof][conf] is mapping %}
{%- if 'dict' in cfg_net[prof][conf].__class__.__name__ %}
{{ conf }}: {{ conf }}:
{%- for opt in cfg_net[prof][conf] %} {%- for opt in cfg_net[prof][conf] %}
{{ opt }}: {{ cfg_net[prof][conf][opt] }} {{ opt }}: {{ cfg_net[prof][conf][opt] }}

View File

@ -838,8 +838,7 @@ ext_pillar:
{%- for key in pillar -%} {%- for key in pillar -%}
{%- if pillar[key] is string %} {%- if pillar[key] is string %}
- {{ key }}: {{ pillar[key] }} - {{ key }}: {{ pillar[key] }}
{#- Workaround for missing `is mapping` on CentOS 6, see #193: #} {%- elif pillar[key] is iterable and pillar[key] is not mapping %}
{%- elif pillar[key] is iterable and 'dict' not in pillar[key].__class__.__name__ %}
- {{ key }}: - {{ key }}:
{%- 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 %}
@ -855,8 +854,7 @@ ext_pillar:
- {{ parameter }} - {{ parameter }}
{%- endif %} {%- endif %}
{%- endfor -%} {%- endfor -%}
{#- Workaround for missing `is mapping` on CentOS 6, see #193: #} {%- elif pillar[key] is mapping and pillar[key] is not string %}
{%- elif 'dict' in pillar[key].__class__.__name__ and pillar[key] is not string %}
- {{ key }}: - {{ key }}:
{%- for parameter in pillar[key] %} {%- for parameter in pillar[key] %}
{{ parameter }}: {{pillar[key][parameter]}} {{ parameter }}: {{pillar[key][parameter]}}

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/apt/ubuntu/16.04/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/apt/ubuntu/16.04/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/apt/ubuntu/18.04/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/apt/ubuntu/18.04/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3000/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/10/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/10/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/9/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/9/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3000/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3000/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3000/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- "/srv/salt" - "/srv/salt"

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/10/amd64/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/10/amd64/3001/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/9/amd64/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/9/amd64/3001/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/repodata/repomd.xml.key key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/repodata/repomd.xml.key
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3001/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3001/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3001/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3001/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3001/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/amazon/2/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/10/amd64/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/10/amd64/3002/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/debian/9/amd64/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/debian/9/amd64/3002/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -43,6 +43,13 @@ values:
version: 0.23.0 version: 0.23.0
install_packages: true install_packages: true
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Leap_15.2/repodata/repomd.xml.key
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/repodata/repomd.xml.key key_url: https://download.opensuse.org/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/repodata/repomd.xml.key
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -44,6 +44,13 @@ values:
install_packages: true install_packages: true
key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/redhat/$releasever/$basearch/3002/SALTSTACK-GPG-KEY.pub
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/16.04/amd64/3002/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/18.04/amd64/3002/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -45,6 +45,13 @@ values:
key_url: https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3002/SALTSTACK-GPG-KEY.pub key_url: https://repo.saltstack.com/py3/ubuntu/20.04/amd64/3002/SALTSTACK-GPG-KEY.pub
libgit2: libgit2-22 libgit2: libgit2-22
master: master:
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt

View File

@ -11,6 +11,13 @@ salt:
pillar_roots: pillar_roots:
base: base:
- /srv/pillar - /srv/pillar
ext_pillar:
- cmd_yaml: cat /etc/salt/yaml
- stack:
- /path/to/stack1.cfg
- /path/to/stack2.cfg
- reclass:
inventory_base_uri: /etc/reclass
minion: minion:
master: localhost master: localhost
fileserver_backend: fileserver_backend: