summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/plugin.pp')
-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
}