From 8067746d6c6efde6cc3d67177910aa96f9491652 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 22 Dec 2009 21:00:14 -0500 Subject: 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 --- manifests/client/package.pp | 1 + manifests/plugins/base.pp | 2 +- manifests/plugins/centos.pp | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 manifests/plugins/centos.pp 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; } +} -- cgit v1.2.3