File: disable_mpm_event.pp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# @summary disable Apache-Module event
class apache::mpm::disable_mpm_event {
  $event_command = ['/usr/sbin/a2dismod', 'mpm_event']
  $event_onlyif = [['/usr/bin/test', '-e', join([$apache::mod_enable_dir, 'mpm_event.load'],'/')]]
  exec { '/usr/sbin/a2dismod mpm_event':
    command => $event_command,
    onlyif  => $event_onlyif,
    require => Package['httpd'],
    notify  => Class['apache::service'],
  }
}