summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-30 21:37:34 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-30 21:37:34 +0000
commitf637dc37d96a1715634734c5ef9d7d5ecd13a447 (patch)
treeb25e6395540683e05e2da32a9b507e296ff9bc87 /manifests/plugin.pp
parentaad7d1cb8c499af0ebe5f8a1ab0c55b9017b7ea2 (diff)
rearranged some stuff
git-svn-id: https://svn/ipuppet/trunk/modules/munin@607 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp48
1 files changed, 48 insertions, 0 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index f21098e..f5919e1 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -145,6 +145,11 @@ class munin::plugins::base {
}
}
}
+
+ case $operatingsystem {
+ gentoo: { $script_path_default = "/usr/libexec/munin/plugins" }
+ default: { $script_path_default = "/usr/share/munin/plugins" }
+ }
}
# handle if_ and if_err_ plugins
@@ -189,8 +194,51 @@ class munin::plugins::vserver inherits munin::plugins::base {
}
class munin::plugins::gentoo inherits munin::plugins::base {
+ file { "$script_path_default/gentoo_lastupdated":
+ source => "puppet://$servername/munin/plugins/gentoo_lastupdated",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ }
+
+ plugin{"gentoo_lastupdated": ensure => present;}
}
class munin::plugins::centos inherits munin::plugins::base {
}
+class munin::plugins::selinux inherits munin::plugins::base {
+ file { "$script_path_default/selinuxenforced":
+ source => "puppet://$servername/munin/plugins/selinuxenforced",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ }
+
+ plugin{"selinuxenforced": ensure => present;}
+}
+
+class munin::plugins::dom0 inherits munin::plugins::base {
+ file {
+ [ "$script_path_default/xen" ]:
+ source => "puppet://$servername/munin/plugins/xen",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ [ "$script_path_default/xen-cpu" ]:
+ source => "puppet://$servername/munin/plugins/xen-cpu",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ [ "$script_path_default/xen_memory" ]:
+ source => "puppet://$servername/munin/plugins/xen_memory",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ [ "$script_path_default/xen_vbd" ]:
+ source => "puppet://$servername/munin/plugins/xen_vbd",
+ ensure => file,
+ mode => 0755, owner => root, group => 0;
+ }
+
+ plugin {
+ [ xen, xen-cpu, xen_memory, xen_vbd ]:
+ ensure => present;
+ }
+}
+