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.

преди 6 години
преди 6 години
преди 6 години
преди 6 години
преди 6 години
преди 6 години
123456789101112131415161718192021222324252627282930
  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) %}