summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-12-22 21:00:14 -0500
committerMicah Anderson <micah@riseup.net>2009-12-22 21:00:14 -0500
commit8067746d6c6efde6cc3d67177910aa96f9491652 (patch)
tree160b8e27570bbe65e6f8a2217e961d5aced425bc
parent556b274473452c9f95a02714e7686d3918f54dde (diff)
the 'users' munin plugin seems to be a centos-specific one, so we
setup a special munin::plugins::centos and include that in the proper client case statement for centos
-rw-r--r--manifests/client/package.pp1
-rw-r--r--manifests/plugins/base.pp2
-rw-r--r--manifests/plugins/centos.pp3
3 files changed, 5 insertions, 1 deletions
diff --git a/manifests/client/package.pp b/manifests/client/package.pp
index 58f40da..1b124d0 100644
--- a/manifests/client/package.pp
+++ b/manifests/client/package.pp
@@ -8,4 +8,5 @@ class munin::client::package inherits munin::client::base {
# boot the munin-node without failure!
before => Package['munin-node'],
}
+ include munin::plugins::centos
}
diff --git a/manifests/plugins/base.pp b/manifests/plugins/base.pp
index 4658acc..5fc2476 100644
--- a/manifests/plugins/base.pp
+++ b/manifests/plugins/base.pp
@@ -15,7 +15,7 @@ class munin::plugins::base {
munin::plugin {
[ df, cpu, interrupts, load, memory, netstat, open_files,
- processes, swap, uptime, users, vmstat
+ processes, swap, uptime, vmstat
]:
ensure => present,
}
diff --git a/manifests/plugins/centos.pp b/manifests/plugins/centos.pp
new file mode 100644
index 0000000..60c706c
--- /dev/null
+++ b/manifests/plugins/centos.pp
@@ -0,0 +1,3 @@
+class munin::plugins::centos inherits munin::plugins::base {
+ munin::plugin { users: ensure => present; }
+}