Saltstack Official Salt Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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