2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'manifests/mpm/disable_mpm_event.pp', line 2
class apache::mpm::disable_mpm_event {
$event_command = ['/usr/sbin/a2dismod', 'event']
$event_onlyif = [['/usr/bin/test', '-e', join([$apache::mod_enable_dir, 'event.load'],'/')]]
exec { '/usr/sbin/a2dismod event':
command => $event_command,
onlyif => $event_onlyif,
require => Package['httpd'],
before => Class['apache::service'],
}
$event_load_command = ['/bin/rm', join([$apache::mod_enable_dir, 'event_event.load'],'/')]
$event_load_onlyif = [['/usr/bin/test', '-e', join([$apache::mod_enable_dir, 'event_event.load'],'/')]]
exec { 'remove distribution event load file':
command => $event_load_command,
onlyif => $event_load_onlyif,
require => Package['httpd'],
before => Class['apache::service'],
}
$event_conf_command = ['/bin/rm', join([$apache::mod_enable_dir, 'event_event.conf'],'/')]
$event_conf_onlyif = [['/usr/bin/test', '-e', join([$apache::mod_enable_dir, 'event_event.conf'],'/')]]
exec { 'remove distribution event conf file':
command => $event_conf_command,
onlyif => $event_conf_onlyif,
require => Package['httpd'],
before => Class['apache::service'],
}
}
|