1 class apache::mod::event (
4 $minsparethreads = '25',
5 $maxsparethreads = '75',
6 $threadsperchild = '25',
7 $maxrequestsperchild = '0',
9 $apache_version = $::apache::apache_version,
11 $listenbacklog = '511',
12 $maxrequestworkers = '250',
13 $maxconnectionsperchild = '0',
15 if defined(Class['apache::mod::itk']) {
16 fail('May not include both apache::mod::event and apache::mod::itk on the same node')
18 if defined(Class['apache::mod::peruser']) {
19 fail('May not include both apache::mod::event and apache::mod::peruser on the same node')
21 if defined(Class['apache::mod::prefork']) {
22 fail('May not include both apache::mod::event and apache::mod::prefork on the same node')
24 if defined(Class['apache::mod::worker']) {
25 fail('May not include both apache::mod::event and apache::mod::worker on the same node')
29 group => $::apache::params::root_group,
39 # - $maxrequestsperchild
41 file { "${::apache::mod_dir}/event.conf":
43 content => template('apache/mod/event.conf.erb'),
44 require => Exec["mkdir ${::apache::mod_dir}"],
45 before => File[$::apache::mod_dir],
46 notify => Class['apache::service'],
51 if versioncmp($apache_version, '2.4') >= 0 {
53 apache_version => $apache_version,
57 'debian','freebsd' : {
59 apache_version => $apache_version,
63 ::portage::makeconf { 'apache2_mpms':
68 fail("Unsupported osfamily ${::osfamily}")