2018-11-07 21:21:50 +01:00
|
|
|
{# vi: set ft=jinja: #}
|
|
|
|
|
|
|
|
{% import_yaml "apache/defaults.yaml" as defaults %}
|
|
|
|
{% 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
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{% set lookup = salt['pillar.get']('apache:lookup', default={}, merge=True) %}
|
|
|
|
{% do defaults.apache.update(lookup) %}
|
2016-09-27 02:00:41 +02:00
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{# merge the modsecurity #}
|
|
|
|
{% set modsecurity = salt['grains.filter_by'](modsec, grain='os_family') or{} %}
|
|
|
|
{% do defaults.apache.update(modsecurity) %}
|
2017-11-03 17:47:20 +01:00
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{# merge the osfamilymap #}
|
|
|
|
{% set osfamily = salt['grains.filter_by'](osfamilymap, grain='os_family') or{} %}
|
|
|
|
{% do defaults.apache.update(osfamily) %}
|
2017-11-03 17:47:20 +01:00
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{# merge the oscodenamemap #}
|
|
|
|
{% set oscode = salt['grains.filter_by'](oscodenamemap, grain='oscodename') or {} %}
|
|
|
|
{% do defaults.apache.update(oscode) %}
|
2016-05-11 03:48:26 +02:00
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{# merge the osfingermap #}
|
|
|
|
{% set osfinger = salt['grains.filter_by'](osfingermap, grain='oscodename') or {} %}
|
2016-05-11 03:48:26 +02:00
|
|
|
|
2018-11-07 21:21:50 +01:00
|
|
|
{# merge all #}
|
|
|
|
{% set apache = salt['pillar.get']('apache', default=defaults['apache'], merge=true) %}
|
2016-05-11 03:48:26 +02:00
|
|
|
|