Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
966B

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