summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/plugin.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index df31fe2..d9b944c 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -4,7 +4,7 @@
define munin::plugin (
$ensure = "present",
- $script_path = $script_path_default,
+ $script_path = '/usr/libexec/munin/plugins',
$config = '')
{
case $operatingsystem {
@@ -20,6 +20,7 @@ define munin::plugin (
#$munin_node_service = "munin-node"
$munin_node_service = "munin"
$munin_node_package = "munin"
+ $script_path = $script_path_default,
}
default: {
$munin_node_service = "munin-node"
@@ -102,18 +103,22 @@ class munin::plugins::base {
gentoo: {
$munin_node_package = "munin"
$munin_node_service = "munin"
+ $script_path_default = "/usr/libexec/munin/plugins"
}
debian: {
$munin_node_service = "munin-node"
$munin_node_package = "munin-node"
+ $script_path_default = "/usr/libexec/munin/plugins"
}
centos: {
$munin_node_service = "munin-node"
$munin_node_package = "munin-node"
+ $script_path_default = "/usr/libexec/munin/plugins"
}
default: {
$munin_node_service = "munin-node"
$munin_node_package = "munin-node"
+ $script_path_default = "/usr/libexec/munin/plugins"
}
}
case $operatingsystem {
@@ -145,11 +150,6 @@ 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