Puppet Class: apache::mpm::disable_mpm_prefork

Defined in:
manifests/mpm/disable_mpm_prefork.pp

Summary

disable Apache-Module prefork

Overview



2
3
4
5
6
7
8
9
10
11
# File 'manifests/mpm/disable_mpm_prefork.pp', line 2

class apache::mpm::disable_mpm_prefork {
  $prefork_command = ['/usr/sbin/a2dismod', 'prefork']
  $prefork_onlyif = [['/usr/bin/test', '-e', join([$apache::mod_enable_dir, 'prefork.load'],'/')]]
  exec { '/usr/sbin/a2dismod prefork':
    command => $prefork_command,
    onlyif  => $prefork_onlyif,
    require => Package['httpd'],
    before  => Class['apache::service'],
  }
}