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.

25 line
883B

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