summaryrefslogtreecommitdiff
path: root/puppet/modules/nagios/manifests/debian/apache.pp
blob: 17b60c60241dfafd4c7ee73fd8363f4a9c0ef9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Handle files that are specifically needed for nagios with apache on debian
#
# Do not include this class directly. It is included by the nagios class and
# needs variables from it.
#
class nagios::debian::apache {

  include ::nagios::defaults::vars

  file { "${nagios::defaults::vars::int_cfgdir}/apache2.conf":
    source => [ "puppet:///modules/site_nagios/configs/${::fqdn}/apache2.conf",
                'puppet:///modules/site_nagios/configs/apache2.conf',
                'puppet:///modules/nagios/configs/apache2.conf'],
  }

  apache::config::global { 'nagios3.conf':
    ensure  => link,
    target  => "${nagios::defaults::vars::int_cfgdir}/apache2.conf",
    require => File["${nagios::defaults::vars::int_cfgdir}/apache2.conf"],
  }

}