Saltstack Official Apache 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.

24 satır
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) %}