summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 09:08:38 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 09:08:38 +0000
commitbe9ce325e83e2521628a70a11b644e373c017839 (patch)
treee84334ebe4f50c61cf898efbea2cdf9b50bd83e3 /manifests
parent86acc23b0434d23c2de923ed5dc771965912e91c (diff)
added gentoo to munin module
git-svn-id: https://svn/ipuppet/trunk/modules/munin@182 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp37
-rw-r--r--manifests/plugin.pp7
2 files changed, 44 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: }
+
+}
+
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index e7e22d1..f07b5fa 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -125,3 +125,10 @@ class munin::plugins::vserver inherits munin::plugins::base {
}
}
+
+class munin::plugins::gentoo inherits munin::plugins::base {
+ plugin {
+ [ netstat, processes ]:
+ ensure => present;
+ }
+}