mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-18 17:00:35 +01:00
a89fb3f4aa
* 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
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# This file managed by Salt, do not edit by hand!!
|
|
# Based on salt version 2015.8.7 default config
|
|
{% set cfg_salt = pillar.get('salt', {}) -%}
|
|
{% set cfg_master = cfg_salt.get('master', {}) -%}
|
|
{% set cfg_prof = cfg_master.get('lxc.container_profile', {}) -%}
|
|
{% set cfg_net = cfg_master.get('lxc.network_profile', {}) -%}
|
|
|
|
###### Profile configurations #########
|
|
#######################################
|
|
{% if cfg_prof %}
|
|
lxc.container_profile:
|
|
{%- for prof in cfg_prof %}
|
|
{{ prof }}:
|
|
{%- for conf in cfg_prof[prof] %}
|
|
{%- if cfg_prof[prof][conf] is mapping %}
|
|
{{ conf }}:
|
|
{%- for opt in cfg_prof[prof][conf] %}
|
|
{{ opt }}: {{ cfg_prof[prof][conf][opt] }}
|
|
{%- endfor %}
|
|
{%- else %}
|
|
{{ conf }}: {{ cfg_prof[prof][conf] }}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
|
|
{% if cfg_net %}
|
|
lxc.network_profile:
|
|
{%- for prof in cfg_net %}
|
|
{{ prof }}:
|
|
{%- for conf in cfg_net[prof] -%}
|
|
{%- if cfg_prof[prof][conf] is mapping %}
|
|
{{ conf }}:
|
|
{%- for opt in cfg_net[prof][conf] %}
|
|
{{ opt }}: {{ cfg_net[prof][conf][opt] }}
|
|
{%- endfor %}
|
|
{%- else %}
|
|
{{ conf }}: {{ cfg_net[prof][conf] }}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
{% endfor %}
|
|
{%- endif %}
|