summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-12 10:45:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-12 10:45:04 -0300
commit911dc5b37a55ce89f4deca57f5c4084e045dab79 (patch)
treeb39358d3e89a4dd46b7880a2d96d4c8acf00353c /manifests
parent7c97d5d3d3878fda7250586fe533e540a27730d3 (diff)
downloadpuppet-apache-911dc5b37a55ce89f4deca57f5c4084e045dab79.tar.gz
puppet-apache-911dc5b37a55ce89f4deca57f5c4084e045dab79.tar.bz2
Adds support for mpm_prefork
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