1 class apache::mod::itk (
3 $minspareservers = '5',
4 $maxspareservers = '20',
7 $maxrequestsperchild = '4000',
8 $apache_version = $::apache::apache_version,
10 if defined(Class['apache::mod::event']) {
11 fail('May not include both apache::mod::itk and apache::mod::event on the same node')
13 if defined(Class['apache::mod::peruser']) {
14 fail('May not include both apache::mod::itk and apache::mod::peruser on the same node')
16 if versioncmp($apache_version, '2.4') < 0 {
17 if defined(Class['apache::mod::prefork']) {
18 fail('May not include both apache::mod::itk and apache::mod::prefork on the same node')
21 if defined(Class['apache::mod::worker']) {
22 fail('May not include both apache::mod::itk and apache::mod::worker on the same node')
26 group => $::apache::params::root_group,
36 # - $maxrequestsperchild
37 file { "${::apache::mod_dir}/itk.conf":
39 content => template('apache/mod/itk.conf.erb'),
40 require => Exec["mkdir ${::apache::mod_dir}"],
41 before => File[$::apache::mod_dir],
42 notify => Class['apache::service'],
46 'debian', 'freebsd': {
48 apache_version => $apache_version,
52 ::portage::makeconf { 'apache2_mpms':
57 fail("Unsupported osfamily ${::osfamily}")