summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2007-12-04 09:08:38 +0000
committerandreas <andreas@immerda.ch>2007-12-04 09:08:38 +0000
commitce3ceb5f653f6cbd1eca2f7bc08a3103b352214f (patch)
treee84334ebe4f50c61cf898efbea2cdf9b50bd83e3 /manifests/client.pp
parentdaba9df5c0f43afc2d6eecf37f2b86823e0bc403 (diff)
added gentoo to munin module
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp37
1 files changed, 37 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 5b78186..f5caaec 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -22,6 +22,11 @@ class munin::client {
include munin::client::debian
include munin::plugins::debian
}
+ gentoo: {
+ include munin::client::gentoo
+ include munin::plugins::gentoo
+
+ }
default: { fail ("Don't know how to handle munin on $operatingsystem") }
}
@@ -120,3 +125,35 @@ class munin::client::debian
plugin { "postfix_mailvolume": ensure => absent }
}
+class munin::client::gentoo
+{
+ package { 'munin':
+ 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.Gentoo."),
+ 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-node"],
+ notify => Service["munin-node"],
+ }
+
+ service { "munin":
+ ensure => running,
+ }
+
+ munin::register { $fqdn: }
+
+}
+