|
1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # 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] %}
- {#- Workaround for missing `is mapping` on CentOS 6, see #193 #}
- {%- if 'dict' in cfg_prof[prof][conf].__class__.__name__ %}
- {{ 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] -%}
- {#- Workaround for missing `is mapping` on CentOS 6, see #193 #}
- {%- if 'dict' in cfg_net[prof][conf].__class__.__name__ %}
- {{ 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 %}
|