summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2007-12-04 17:29:17 +0000
committerandreas <andreas@immerda.ch>2007-12-04 17:29:17 +0000
commit23299fbb8ad10633d17aae964709f17cf1b5d758 (patch)
tree7cb539753e41214066715b68244a9a7c9583cd69 /manifests
parentd5b769c448fa2d2c3b107c08898f43ed3f17555f (diff)
an beide orte ...
Diffstat (limited to 'manifests')
-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",