summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c62c480..c800637 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -24,7 +24,12 @@ class nagios(
case $nagios::httpd {
'absent': { }
'lighttpd': { include ::lighttpd }
- 'apache': { include ::apache }
+ 'apache': {
+ include ::apache
+ if $::operatingsystem == 'debian' {
+ include nagios::debian::apache
+ }
+ }
default: { include ::apache }
}
case $::operatingsystem {
@@ -36,7 +41,9 @@ class nagios(
$cfgdir = '/etc/nagios3'
include nagios::debian
}
- default: { fail("No such operatingsystem: ${::operatingsystem} yet defined") }
+ default: {
+ fail("No such operatingsystem: ${::operatingsystem} yet defined")
+ }
}
if $manage_munin {
include nagios::munin