summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-06-28 19:28:27 +0200
committermh <mh@immerda.ch>2010-06-28 19:28:27 +0200
commitc25c57f3945a7edf66bedaa34fa4af62a803d174 (patch)
tree863c61e2de0c258c859527e14e86b47ffd8f0bb1 /manifests/init.pp
parent77f601607093b7fb22f3498574d0dedd2cbe01d9 (diff)
parent5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff)
merge with lavamind
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp15
1 files changed, 14 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 6eca55f..1aecc3a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,8 +15,21 @@
#
class nagios {
+ case $nagios_httpd {
+ 'absent': { }
+ 'lighttpd': { include lighttpd }
+ 'apache': { include apache }
+ default: { include apache }
+ }
case $operatingsystem {
- centos: { include nagios::centos }
+ 'centos': {
+ $nagios_cfgdir = '/etc/nagios'
+ include nagios::centos
+ }
+ 'debian': {
+ $nagios_cfgdir = '/etc/nagios3'
+ include nagios::debian
+ }
default: { fail("No such operatingsystem: $operatingsystem yet defined") }
}
}