Fix apache:lookup
regression (#252)
This commit is contained in:
parent
dccfdf7962
commit
6852f87b7f
@ -6,25 +6,25 @@
|
||||
{% import_yaml "apache/osfingermap.yaml" as osfingermap %}
|
||||
{% import_yaml "apache/modsecurity.yaml" as modsec %}
|
||||
|
||||
{% set lookup = salt['pillar.get']('apache:lookup', default={}, merge=True) %}
|
||||
{% do defaults.apache.update(lookup) %}
|
||||
|
||||
{# merge the modsecurity #}
|
||||
{% set modsecurity = salt['grains.filter_by'](modsec, grain='os_family') or{} %}
|
||||
{% do defaults.apache.update(modsecurity) %}
|
||||
{% do salt['defaults.merge'](defaults['apache'], modsecurity) %}
|
||||
|
||||
{# merge the osfamilymap #}
|
||||
{% set osfamily = salt['grains.filter_by'](osfamilymap, grain='os_family') or{} %}
|
||||
{% do defaults.apache.update(osfamily) %}
|
||||
{% do salt['defaults.merge'](defaults['apache'], osfamily) %}
|
||||
|
||||
{# merge the oscodenamemap #}
|
||||
{% set oscode = salt['grains.filter_by'](oscodenamemap, grain='oscodename') or {} %}
|
||||
{% do defaults.apache.update(oscode) %}
|
||||
{% do salt['defaults.merge'](defaults['apache'], oscode) %}
|
||||
|
||||
{# merge the osfingermap #}
|
||||
{% set osfinger = salt['grains.filter_by'](osfingermap, grain='osfinger') or {} %}
|
||||
{% do defaults.apache.update(osfinger) %}
|
||||
{% do salt['defaults.merge'](defaults['apache'], osfinger) %}
|
||||
|
||||
{# merge the lookup #}
|
||||
{% set lookup = salt['pillar.get']('apache:lookup', default={}, merge=True) %}
|
||||
{% do salt['defaults.merge'](defaults['apache'], lookup) %}
|
||||
|
||||
{# merge all #}
|
||||
{% set apache = salt['pillar.get']('apache', default=defaults['apache'], merge=true) %}
|
||||
|
||||
{% set apache = salt['pillar.get']('apache', default=defaults['apache'], merge=True) %}
|
||||
|
Loading…
Reference in New Issue
Block a user