1 class apache::mod::peruser (
2 $minspareprocessors = '2',
6 $maxrequestsperchild = '1000',
8 $expiretimeout = '120',
14 fail("Unsupported osfamily ${::osfamily}")
17 if $::osfamily == 'gentoo' {
18 ::portage::makeconf { 'apache2_mpms':
23 if defined(Class['apache::mod::event']) {
24 fail('May not include both apache::mod::peruser and apache::mod::event on the same node')
26 if defined(Class['apache::mod::itk']) {
27 fail('May not include both apache::mod::peruser and apache::mod::itk on the same node')
29 if defined(Class['apache::mod::prefork']) {
30 fail('May not include both apache::mod::peruser and apache::mod::prefork on the same node')
32 if defined(Class['apache::mod::worker']) {
33 fail('May not include both apache::mod::peruser and apache::mod::worker on the same node')
37 group => $::apache::params::root_group,
41 $mod_dir = $::apache::mod_dir
44 # - $minspareprocessors
48 # - $maxrequestsperchild
53 file { "${::apache::mod_dir}/peruser.conf":
55 content => template('apache/mod/peruser.conf.erb'),
56 require => Exec["mkdir ${::apache::mod_dir}"],
57 before => File[$::apache::mod_dir],
58 notify => Class['apache::service'],
60 file { "${::apache::mod_dir}/peruser":
62 require => File[$::apache::mod_dir],
64 file { "${::apache::mod_dir}/peruser/multiplexers":
66 require => File["${::apache::mod_dir}/peruser"],
68 file { "${::apache::mod_dir}/peruser/processors":
70 require => File["${::apache::mod_dir}/peruser"],
73 ::apache::peruser::multiplexer { '01-default': }