From 911dc5b37a55ce89f4deca57f5c4084e045dab79 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 12 Apr 2018 10:45:04 -0300 Subject: Adds support for mpm_prefork --- manifests/init.pp | 26 +++++++++++++++++--------- 1 file 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 -- cgit v1.2.3