diff options
author | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-08 09:15:57 +0000 |
---|---|---|
committer | david <david@f03ff2f1-f02d-0410-970d-b9634babeaa1> | 2007-08-08 09:15:57 +0000 |
commit | 9f7e01c7af791040f483376e419ed83103837b12 (patch) | |
tree | 94a14cdb68995bf25c671c3418eeabe0988483a3 /manifests | |
parent | b6e5123196bc8199a895e39a33ab62cf9c4ff236 (diff) |
fix xen0/xenu usage; fix acpi munin plugin on vservers; fix xen munin plugins
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@188 f03ff2f1-f02d-0410-970d-b9634babeaa1
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 2 | ||||
-rw-r--r-- | manifests/plugin.pp | 14 |
2 files changed, 12 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index dc646e7..966cdcb 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,7 +7,7 @@ # Define where the individual nodes' configs are stored $NODESDIR="/var/lib/puppet/modules/munin/nodes" -modules_dir { [ "munin", "munin/nodes" ]: } +modules_dir { [ "munin", "munin/nodes", "munin/plugins" ]: } import "host.pp" import "client.pp" diff --git a/manifests/plugin.pp b/manifests/plugin.pp index fb2f882..fdb58ca 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -85,9 +85,17 @@ class munin::plugins::base { interfaces: source => "puppet://$servername/munin/facter/interfaces.rb", require => Package[iproute]; - acpi_available: - source => "puppet://$servername/munin/facter/acpi_available.rb", - require => Package[acpi]; + } + case $vserver { + guest: {} + '': {} + default: { + puppet::fact{ + acpi_available: + source => "puppet://$servername/munin/facter/acpi_available.rb", + require => Package[acpi]; + } + } } } |