Saltstack Official Salt Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

43 lines
1.2KB

  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. {%- if cfg_prof[prof][conf] is mapping %}
  15. {{ conf }}:
  16. {%- for opt in cfg_prof[prof][conf] %}
  17. {{ opt }}: {{ cfg_prof[prof][conf][opt] }}
  18. {%- endfor %}
  19. {%- else %}
  20. {{ conf }}: {{ cfg_prof[prof][conf] }}
  21. {%- endif %}
  22. {%- endfor %}
  23. {% endfor %}
  24. {%- endif %}
  25. {% if cfg_net %}
  26. lxc.network_profile:
  27. {%- for prof in cfg_net %}
  28. {{ prof }}:
  29. {%- for conf in cfg_net[prof] -%}
  30. {%- if cfg_prof[prof][conf] is mapping %}
  31. {{ conf }}:
  32. {%- for opt in cfg_net[prof][conf] %}
  33. {{ opt }}: {{ cfg_net[prof][conf][opt] }}
  34. {%- endfor %}
  35. {%- else %}
  36. {{ conf }}: {{ cfg_net[prof][conf] }}
  37. {%- endif %}
  38. {%- endfor %}
  39. {% endfor %}
  40. {%- endif %}