summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-12 10:40:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-12 10:40:22 -0300
commit7c97d5d3d3878fda7250586fe533e540a27730d3 (patch)
tree1cccca22936f3c10e03fdae4ae6c0c90e33f4d0f /manifests
parentb39ed3d7adc85620daaf10a34714476f0547bedf (diff)
downloadpuppet-apache-7c97d5d3d3878fda7250586fe533e540a27730d3.tar.gz
puppet-apache-7c97d5d3d3878fda7250586fe533e540a27730d3.tar.bz2
MPM selection
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp26
1 files changed, 20 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index cbd8007..8869a8b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -42,6 +42,7 @@ class apache(
$https_port = '443',
$default_user = 'www-data',
$default_group = 'www-data',
+ $mpm = 'itk',
) {
include ssl
@@ -107,16 +108,29 @@ class apache(
require => Package["apache"],
}
- # Conflicts with mpm_itk
- apache::module { "mpm_event":
- ensure => absent,
+ # MPM selection
+ # There could be only one
+
+ apache::module { "mpm_worker":
+ ensure => $mpm ? {
+ 'worker' => present,
+ default => absent,
+ },
require => Package['apache'],
}
+ apache::module { "mpm_event":
+ ensure => $mpm ? {
+ 'event' => present,
+ default => absent,
+ },
+ require => [ Package['apache'], Apache::Module['mpm_worker'] ],
+ }
+
apache::module { "mpm_itk":
- ensure => $::lsbdistcodename ? {
- wheezy => absent,
- default => present,
+ ensure => $mpm ? {
+ 'itk' => present,
+ default => absent,
},
require => [ Package['apache', 'libapache2-mpm-itk'], Apache::Module['mpm_event'] ],
}