blob: c560e5b249c380d560988d66a86fabe16da58030 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
class nagios::apache inherits ::apache {
$nagios_httpd = 'apache'
include nagios
case $operatingsystem {
'debian': {
file { "${nagios::defaults::vars::int_nagios_cfgdir}/apache2.conf":
ensure => present,
source => ["puppet:///site-nagios/configs/${fqdn}/apache2.conf",
"puppet:///site-nagios/configs/apache2.conf",
"puppet:///nagios/configs/apache2.conf"],
}
apache::config::global { "nagios3.conf":
ensure => link,
target => "${nagios::defaults::vars::int_nagios_cfgdir}/apache2.conf",
require => File["${nagios::defaults::vars::int_nagios_cfgdir}/apache2.conf"],
}
}
}
}
|