diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-04-12 10:45:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-04-12 10:45:04 -0300 |
commit | 911dc5b37a55ce89f4deca57f5c4084e045dab79 (patch) | |
tree | b39358d3e89a4dd46b7880a2d96d4c8acf00353c /manifests | |
parent | 7c97d5d3d3878fda7250586fe533e540a27730d3 (diff) | |
download | puppet-apache-911dc5b37a55ce89f4deca57f5c4084e045dab79.tar.gz puppet-apache-911dc5b37a55ce89f4deca57f5c4084e045dab79.tar.bz2 |
Adds support for mpm_prefork
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 8869a8b..fb3d29a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -111,12 +111,28 @@ class apache( # MPM selection # There could be only one + apache::module { "mpm_itk": + ensure => $mpm ? { + 'itk' => present, + default => absent, + }, + require => Package['apache', 'libapache2-mpm-itk'], + } + + apache::module { "mpm_prefork": + ensure => $mpm ? { + 'prefork' => present, + default => absent, + }, + require => [ Package['apache'], Apache::Module['mpm_itk'] ], + } + apache::module { "mpm_worker": ensure => $mpm ? { 'worker' => present, default => absent, }, - require => Package['apache'], + require => [ Package['apache'], Apache::Module['mpm_prefork'] ], } apache::module { "mpm_event": @@ -127,14 +143,6 @@ class apache( require => [ Package['apache'], Apache::Module['mpm_worker'] ], } - apache::module { "mpm_itk": - ensure => $mpm ? { - 'itk' => present, - default => absent, - }, - require => [ Package['apache', 'libapache2-mpm-itk'], Apache::Module['mpm_event'] ], - } - # disable compression # prevents BREACH attack # see https://superuser.com/questions/627413/how-do-i-disable-http-level-compression |