Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

31 lines
1.2KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Start imports #}
  4. {% import_yaml "salt/defaults.yaml" as defaults %}
  5. {% import_yaml "salt/osfamilymap.yaml" as osfamilymap %}
  6. {% import_yaml "salt/osmap.yaml" as osmap %}
  7. {% import_yaml "salt/osfingermap.yaml" as osfingermap %}
  8. {# merge the osfamilymap #}
  9. {% set osfamily_map = salt['grains.filter_by'](osfamilymap, grain='os_family') or {} %}
  10. {% do salt['defaults.merge'](defaults['salt'], osfamily_map) %}
  11. {# merge the osmap #}
  12. {% set os_map = salt['grains.filter_by'](osmap, grain='os') or {} %}
  13. {% do salt['defaults.merge'](defaults['salt'], os_map) %}
  14. {# merge the osfingermap #}
  15. {% set osfinger_map = salt['grains.filter_by'](osfingermap, grain='osfinger') or {} %}
  16. {% do salt['defaults.merge'](defaults['salt'], osfinger_map) %}
  17. {# merge the lookup #}
  18. {% set lookup = salt['pillar.get']('salt:lookup', default={}, merge=True) %}
  19. {% do salt['defaults.merge'](defaults['salt'], lookup) %}
  20. {#- Merge in salt pillar #}
  21. {% set salt_settings = salt['pillar.get']('salt', default=defaults['salt'], merge=True) %}
  22. {#- Merge in salt_formulas pillar #}
  23. {% set formulas_settings = salt['pillar.get']('salt_formulas',default=defaults['salt_formulas'], merge=True) %}