summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-14 10:36:25 -0300
committermh <mh@immerda.ch>2012-06-14 10:36:25 -0300
commit41fe95b36253826b8f801ee1669acdb28c70076c (patch)
tree275d0bb973a35c3fd48fe51dd67333764fe99325 /manifests/init.pp
parent106515b61b731489cce2d8b74bea13b26d4a65f6 (diff)
take hiera out of the params
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp39
1 files changed, 22 insertions, 17 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9952cd9..12d3db2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,24 +15,29 @@
#
class nagios(
- $httpd = hiera('nagios_httpd','apache'),
- $allow_external_cmd = hiera('nagios_allow_external_cmd',false),
+ $httpd = 'apache',
+ $allow_external_cmd = false,
+ $manage_shorewall = false,
+ $manage_munin = false
) {
- case $nagios::httpd {
- 'absent': { }
- 'lighttpd': { include ::lighttpd }
- 'apache': { include ::apache }
- default: { include ::apache }
+ case $nagios::httpd {
+ 'absent': { }
+ 'lighttpd': { include ::lighttpd }
+ 'apache': { include ::apache }
+ default: { include ::apache }
+ }
+ case $::operatingsystem {
+ 'centos': {
+ $cfgdir = '/etc/nagios'
+ include nagios::centos
}
- case $::operatingsystem {
- 'centos': {
- $cfgdir = '/etc/nagios'
- include nagios::centos
- }
- 'debian': {
- $cfgdir = '/etc/nagios3'
- include nagios::debian
- }
- default: { fail("No such operatingsystem: ${::operatingsystem} yet defined") }
+ 'debian': {
+ $cfgdir = '/etc/nagios3'
+ include nagios::debian
}
+ default: { fail("No such operatingsystem: ${::operatingsystem} yet defined") }
+ }
+ if $manage_munin {
+ include nagios::munin
+ }
}