Sha256: 93104517e144002e88ec506837c938ea1a7d7d065568535a97c4304c5d04e3a2

Contents?: true

Size: 1.79 KB

Versions: 11

Compression:

Stored size: 1.79 KB

Contents

class apache::mod::itk (
  $startservers        = '8',
  $minspareservers     = '5',
  $maxspareservers     = '20',
  $serverlimit         = '256',
  $maxclients          = '256',
  $maxrequestsperchild = '4000',
) {
  if defined(Class['apache::mod::event']) {
    fail('May not include both apache::mod::itk and apache::mod::event on the same node')
  }
  if defined(Class['apache::mod::peruser']) {
    fail('May not include both apache::mod::itk and apache::mod::peruser on the same node')
  }
  if defined(Class['apache::mod::prefork']) {
    fail('May not include both apache::mod::itk and apache::mod::prefork on the same node')
  }
  if defined(Class['apache::mod::worker']) {
    fail('May not include both apache::mod::itk and apache::mod::worker on the same node')
  }
  File {
    owner => 'root',
    group => $apache::params::root_group,
    mode  => '0644',
  }

  # Template uses:
  # - $startservers
  # - $minspareservers
  # - $maxspareservers
  # - $serverlimit
  # - $maxclients
  # - $maxrequestsperchild
  file { "${apache::mod_dir}/itk.conf":
    ensure  => file,
    content => template('apache/mod/itk.conf.erb'),
    require => Exec["mkdir ${apache::mod_dir}"],
    before  => File[$apache::mod_dir],
    notify  => Service['httpd'],
  }

  case $::osfamily {
    'debian' : {
      file { "${apache::mod_enable_dir}/itk.conf":
        ensure  => link,
        target  => "${apache::mod_dir}/itk.conf",
        require => Exec["mkdir ${apache::mod_enable_dir}"],
        before  => File[$apache::mod_enable_dir],
        notify  => Service['httpd'],
      }
      package { 'apache2-mpm-itk':
        ensure => present,
      }
    }
    'freebsd' : {
      class { 'apache::package':
        mpm_module => 'itk'
      }
    }
    default: {
      fail("Unsupported osfamily ${::osfamily}")
    }
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/manifests/mod/itk.pp
freighthop-0.6.0 modules/apache/manifests/mod/itk.pp
freighthop-0.5.2 modules/apache/manifests/mod/itk.pp
freighthop-0.5.1 modules/apache/manifests/mod/itk.pp
freighthop-0.5.0 modules/apache/manifests/mod/itk.pp
freighthop-0.4.1 modules/apache/manifests/mod/itk.pp
freighthop-0.4.0 modules/apache/manifests/mod/itk.pp
freighthop-0.3.3 modules/apache/manifests/mod/itk.pp
freighthop-0.3.2 modules/apache/manifests/mod/itk.pp
freighthop-0.3.1 modules/apache/manifests/mod/itk.pp
freighthop-0.3.0 modules/apache/manifests/mod/itk.pp