summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/plugin.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index e7a6b2a..6a84bc6 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -8,14 +8,10 @@ define munin::plugin (
$config = '')
{
case $operatingsystem {
- debian: {
- $munin-node-service = "$operatingsystem/munin-node";
- }
- gentoo: {
- $munin-node-service = "$operatingsystem/munin";
- }
+ debian: { $munin-node-service = "munin-node"; }
+ gentoo: { $munin-node-service = "munin"; }
}
- $plugin_src = $ensure ? { "present" => $name, default => $ensure }
+ $plugin_src = $ensure ? { "present" => $name, default => $ensure }
debug ( "munin_plugin: name=$name, ensure=$ensure, script_path=$script_path" )
$plugin = "/etc/munin/plugins/$name"
$plugin_conf = "/etc/munin/plugin-conf.d/$name.conf"
@@ -77,6 +73,10 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
class munin::plugins::base-debian {
+ case $operatingsystem {
+ debian: { $munin-node-service = "munin-node"; }
+ gentoo: { $munin-node-service = "munin"; }
+ }
file {
[ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
source => "puppet://$servername/munin/empty",