Update 00-mpm.conf.jinja
Change mpm.conf template for RedHat family systems. The code currently written will always expand to true as a pillar.get() call will return None in case the pillar is non existing, which is also considered defined. Fix this.
This commit is contained in:
parent
165d8b683c
commit
d0f3740c9e
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{% set mpm_module = 'mpm_prefork' -%}
|
{% set mpm_module = 'mpm_prefork' -%}
|
||||||
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_prefork', {}) -%}
|
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_prefork', {}) -%}
|
||||||
{% if pillar.get('apache:mod_mpm_worker') is defined -%}
|
{% if pillar.get('apache:mod_mpm_worker', None) -%}
|
||||||
{% set mpm_module = 'mpm_worker' -%}
|
{% set mpm_module = 'mpm_worker' -%}
|
||||||
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_worker', {}) -%}
|
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_worker', {}) -%}
|
||||||
{% else -%}
|
{% else -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user