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

24 行
907B

  1. {#- vi: set ft=jinja: #}
  2. {%- import_yaml "apache/defaults.yaml" as default_settings %}
  3. {%- import_yaml "apache/osfamilymap.yaml" as osfamilymap %}
  4. {%- import_yaml "apache/oscodenamemap.yaml" as oscodenamemap %}
  5. {%- import_yaml "apache/osfingermap.yaml" as osfingermap %}
  6. {%- import_yaml "apache/modsecurity.yaml" as modsec %}
  7. {%- set defaults = salt['grains.filter_by'](default_settings,
  8. default='apache',
  9. merge=salt['grains.filter_by'](modsec, grain='os_family',
  10. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  11. merge=salt['grains.filter_by'](oscodenamemap, grain='oscodename',
  12. merge=salt['grains.filter_by'](osfingermap, grain='osfinger',
  13. merge=salt['pillar.get']('apache:lookup', default={})
  14. )
  15. )
  16. )
  17. )
  18. ) %}
  19. {#- Merge the apache pillar #}
  20. {%- set apache = salt['pillar.get']('apache', default=defaults, merge=True) %}