From 97cc6107a23e86a4a8cca577bb4d88a4ec40d886 Mon Sep 17 00:00:00 2001 From: Sijis Aviles Date: Mon, 29 Dec 2014 09:51:25 -0600 Subject: [PATCH] added lvm plugin --- manifests/plugin/lvm.pp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 manifests/plugin/lvm.pp diff --git a/manifests/plugin/lvm.pp b/manifests/plugin/lvm.pp new file mode 100644 index 000000000..2b62aabc4 --- /dev/null +++ b/manifests/plugin/lvm.pp @@ -0,0 +1,17 @@ +# https://collectd.org/wiki/index.php/Plugin:LVM +class collectd::plugin::lvm ( + $ensure = present, + $interval = undef, +) { + + if $::osfamily == 'Redhat' { + package { 'collectd-lvm': + ensure => installed + } + } + + collectd::plugin {'lvm': + ensure => $ensure, + interval => $interval, + } +}