summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-02-01 15:47:52 +0000
committerandreas <andreas@immerda.ch>2008-02-01 15:47:52 +0000
commitd9e65b358ad4dae5670b7dd366f170807d330d69 (patch)
tree5d063462028f41a47de678f04493aa20dbff2afc /manifests
parentc08e63bd126694d8f8e7b2449c2d382cd3920aa4 (diff)
test
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp23
1 files changed, 22 insertions, 1 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index b33260e..8869383 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -34,7 +34,28 @@ define munin::plugin (
$script_path_in = '',
$config = '')
{
- include munin::plugin::paths
+ case $operatingsystem {
+ gentoo: {
+ $munin_node_package = "munin"
+ $munin_node_service = "munin"
+ $script_path = "/usr/libexec/munin/plugins"
+ }
+ debian: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
+ $script_path = "/usr/share/munin/plugins"
+ }
+ centos: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
+ $script_path = "/usr/share/munin/plugins"
+ }
+ default: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
+ $script_path = "/usr/share/munin/plugins"
+ }
+ }
#$script_path = $script_path_in ? { '' => $script_path, default => $script_path_in }