Saltstack Official Salt Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

45 lines
1.3KB

  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 %}