summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp26
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