Puppet Class: apache::mod::watchdog
- Defined in:
-
manifests/mod/watchdog.pp
Summary
Installs and configures `mod_watchdog`.
Overview
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'manifests/mod/watchdog.pp', line 8
class apache::mod::watchdog (
Optional[Integer] $watchdog_interval = undef,
) {
include apache
$module_builtin = $facts['os']['family'] in ['Debian']
unless $module_builtin {
apache::mod { 'watchdog':
}
}
if $watchdog_interval {
file { 'watchdog.conf':
ensure => file,
path => "${apache::mod_dir}/watchdog.conf",
mode => $apache::file_mode,
content => "WatchdogInterval ${watchdog_interval}\n",
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
notify => Class['apache::service'],
}
}
}
|