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.

26 lines
963B

  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. {# merge the osfamilymap #}
  8. {% set osfamily = salt['grains.filter_by'](osfamilymap, grain='os_family') or{} %}
  9. {% do salt['defaults.merge'](defaults['salt'], osfamily) %}
  10. {# merge the osmap #}
  11. {% set osmap = salt['grains.filter_by'](osmap, grain='os') or{} %}
  12. {% do salt['defaults.merge'](defaults['salt'], osmap) %}
  13. {# merge the lookup #}
  14. {% set lookup = salt['pillar.get']('salt:lookup', default={}, merge=True) %}
  15. {% do salt['defaults.merge'](defaults['salt'], lookup) %}
  16. {#- Merge in salt pillar #}
  17. {% set salt_settings = salt['pillar.get']('salt', default=defaults['salt'], merge=True) %}
  18. {#- Merge in salt_formulas pillar #}
  19. {% set formulas_settings = salt['pillar.get']('salt_formulas',default=defaults['salt_formulas'], merge=True) %}