Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 8 година
пре 8 година
пре 8 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file managed by Salt, do not edit by hand!!
  2. # Based on salt version 2015.8.7 default config
  3. {% set cfg_salt = pillar.get('salt', {}) -%}
  4. {% set cfg_master = cfg_salt.get('master', {}) -%}
  5. {% set cfg_prof = cfg_master.get('lxc.container_profile', {}) -%}
  6. {% set cfg_net = cfg_master.get('lxc.network_profile', {}) -%}
  7. ###### Profile configurations #########
  8. #######################################
  9. {% if cfg_prof %}
  10. lxc.container_profile:
  11. {%- for prof in cfg_prof %}
  12. {{ prof }}:
  13. {%- for conf in cfg_prof[prof] %}
  14. {#- Workaround for missing `is mapping` on CentOS 6, see #193 #}
  15. {%- if 'dict' in cfg_prof[prof][conf].__class__.__name__ %}
  16. {{ conf }}:
  17. {%- for opt in cfg_prof[prof][conf] %}
  18. {{ opt }}: {{ cfg_prof[prof][conf][opt] }}
  19. {%- endfor %}
  20. {%- else %}
  21. {{ conf }}: {{ cfg_prof[prof][conf] }}
  22. {%- endif %}
  23. {%- endfor %}
  24. {% endfor %}
  25. {%- endif %}
  26. {% if cfg_net %}
  27. lxc.network_profile:
  28. {%- for prof in cfg_net %}
  29. {{ prof }}:
  30. {%- for conf in cfg_net[prof] -%}
  31. {#- Workaround for missing `is mapping` on CentOS 6, see #193 #}
  32. {%- if 'dict' in cfg_net[prof][conf].__class__.__name__ %}
  33. {{ conf }}:
  34. {%- for opt in cfg_net[prof][conf] %}
  35. {{ opt }}: {{ cfg_net[prof][conf][opt] }}
  36. {%- endfor %}
  37. {%- else %}
  38. {{ conf }}: {{ cfg_net[prof][conf] }}
  39. {%- endif %}
  40. {%- endfor %}
  41. {% endfor %}
  42. {%- endif %}