summaryrefslogtreecommitdiff
path: root/manifests/debian/apache.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-10-06 14:32:42 +0200
committervarac <varacanero@zeromail.org>2015-10-06 14:32:42 +0200
commit70afab799b8cf720cd12bd225c1c2948fd1597ee (patch)
tree9cfe2d117de723f519e13908c2a41d09bba6c083 /manifests/debian/apache.pp
parent6c3ca97f1524e2b6242c27a2c97dbfb78105889f (diff)
parent2cd1b529fc18847712760b15c9412b10d1cee712 (diff)
Merge remote-tracking branch 'shared/master' into leap_master
Conflicts: manifests/apache.pp
Diffstat (limited to 'manifests/debian/apache.pp')
-rw-r--r--manifests/debian/apache.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/debian/apache.pp b/manifests/debian/apache.pp
new file mode 100644
index 0000000..095091e
--- /dev/null
+++ b/manifests/debian/apache.pp
@@ -0,0 +1,23 @@
+# 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":
+ ensure => present,
+ 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"],
+ }
+
+}