summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2007-12-07 11:07:31 +0000
committerandreas <andreas@immerda.ch>2007-12-07 11:07:31 +0000
commit4527d6f81e4da2ec2dcbd00ea04f6a0ba6c680c5 (patch)
treeb924603e6395058277d93ffb1afe029ffe5f38d0 /manifests/client.pp
parent7d2be1e998792cc1267dfc44e6967a9dc526d71c (diff)
* added centos to the munin module
* little corrections in shorewall-local stuff
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp37
1 files changed, 36 insertions, 1 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 639d133..18a4043 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -25,7 +25,10 @@ class munin::client {
gentoo: {
include munin::client::gentoo
include munin::plugins::gentoo
-
+ }
+ centos: {
+ include munin::client::centos
+ include munin::plugins::centos
}
default: { fail ("Don't know how to handle munin on $operatingsystem") }
}
@@ -157,3 +160,35 @@ class munin::client::gentoo
}
+class munin::client::centos
+{
+ package { 'munin-node':
+ ensure => present,
+ category => $operatingsystem ? {
+ gentoo => 'net-analyzer',
+ default => '',
+ },
+ }
+
+
+ file {
+ "/etc/munin/":
+ ensure => directory,
+ mode => 0755, owner => root, group => root;
+ "/etc/munin/munin-node.conf":
+ content => template("munin/munin-node.conf.CentOS."),
+ mode => 0644, owner => root, group => root,
+ # this has to be installed before the package, so the postinst can
+ # boot the munin-node without failure!
+ before => Package["munin"],
+ notify => Service["munin"],
+ }
+
+ service { "munin":
+ ensure => running,
+ }
+
+ munin::register { $fqdn: }
+
+}
+