2018-11-07 21:21:50 +01:00
|
|
|
{# vi: set ft=jinja: #}
|
|
|
|
|
2019-02-13 13:41:52 +01:00
|
|
|
{% import_yaml "apache/defaults.yaml" as default_settings %}
|
2018-11-07 21:21:50 +01:00
|
|
|
{% import_yaml "apache/osfamilymap.yaml" as osfamilymap %}
|
|
|
|
{% import_yaml "apache/oscodenamemap.yaml" as oscodenamemap %}
|
2015-08-25 21:38:16 +02:00
|
|
|
{% import_yaml "apache/osfingermap.yaml" as osfingermap %}
|
2016-05-11 03:48:26 +02:00
|
|
|
{% import_yaml "apache/modsecurity.yaml" as modsec %}
|
2015-08-25 21:38:16 +02:00
|
|
|
|
2019-02-13 13:41:52 +01:00
|
|
|
{% set defaults = salt['grains.filter_by'](default_settings,
|
|
|
|
default='apache',
|
|
|
|
merge=salt['grains.filter_by'](modsec, grain='os_family',
|
|
|
|
merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
|
|
|
|
merge=salt['grains.filter_by'](oscodenamemap, grain='oscodename',
|
|
|
|
merge=salt['grains.filter_by'](osfingermap, grain='osfinger',
|
|
|
|
merge=salt['pillar.get']('apache:lookup', default={})
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) %}
|
2017-11-03 17:47:20 +01:00
|
|
|
|
2019-02-13 13:41:52 +01:00
|
|
|
{## Merge the apache pillar ##}
|
|
|
|
{% set apache = salt['pillar.get']('apache', default=defaults, merge=True) %}
|