summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-08-07 18:40:25 +0000
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-08-07 18:40:25 +0000
commit3e187eafe5e0e905b55517e9f2b0e696aa2a8c6c (patch)
tree2f584637a4ac47e9809a8146266225cbbb1512ad /manifests
parent2e4aea7dc248a603ba2f944539c1feb6e4a34ff3 (diff)
more munin enhancements
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@181 f03ff2f1-f02d-0410-970d-b9634babeaa1
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp14
1 files changed, 11 insertions, 3 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 3b1e80a..e875ddb 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -81,9 +81,13 @@ class munin::plugins::base {
notify => Service[munin-node];
}
- puppet::fact{ interfaces:
- source => "puppet://$servername/munin/facter/interfaces.rb",
- require => Package[iproute],
+ puppet::fact{
+ interfaces:
+ source => "puppet://$servername/munin/facter/interfaces.rb",
+ require => Package[iproute];
+ acpi_available:
+ source => "puppet://$servername/munin/facter/acpi_available.rb",
+ require => Package[acpi];
}
}
@@ -110,6 +114,10 @@ class munin::plugins::linux inherits munin::plugins::base {
ensure => present;
}
+ if $acpi_available {
+ plugin { acpi: }
+ }
+
include munin::plugins::interfaces
}