summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 17:29:17 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 17:29:17 +0000
commitd362c7c3f555d620b35e0021781b6f0e894105fc (patch)
tree7cb539753e41214066715b68244a9a7c9583cd69 /manifests
parent26e0ec6e73487fa6ab6f0000ee19906ad27caeaf (diff)
an beide orte ...
git-svn-id: https://svn/ipuppet/trunk/modules/munin@191 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
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",