summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2007-12-07 11:07:31 +0000
committerandreas <andreas@immerda.ch>2007-12-07 11:07:31 +0000
commit4527d6f81e4da2ec2dcbd00ea04f6a0ba6c680c5 (patch)
treeb924603e6395058277d93ffb1afe029ffe5f38d0 /manifests/plugin.pp
parent7d2be1e998792cc1267dfc44e6967a9dc526d71c (diff)
* added centos to the munin module
* little corrections in shorewall-local stuff
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp24
1 files changed, 17 insertions, 7 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 2ae20d2..579e2f9 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -11,21 +11,21 @@ define munin::plugin (
debian: {
$munin_node_service = "munin-node"
$munin_node_package = "munin-node"
- #$script_path_default = "/usr/share/munin/plugins"
+ }
+ centos: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
}
gentoo: {
#$munin_node_service = "munin-node"
$munin_node_service = "munin"
$munin_node_package = "munin"
- #$script_path_default = "/usr/libexec/munin/plugins"
}
default: {
- $munin_node_service = "munin"
- $munin_node_package = "munin"
- #$script_path_default = "/usr/libexec/munin/plugins"
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
}
}
- #$script_path_correct = $script_path ? { '' => $script_path_default, default => $script_path_default }
$plugin_src = $ensure ? { "present" => $name, default => $ensure }
debug ( "munin_plugin: name=$name, ensure=$ensure, script_path=$script_path" )
@@ -37,7 +37,6 @@ define munin::plugin (
file { $plugin: ensure => absent, }
}
default: {
- #$plugin_src = $ensure ? { "present" => $name, default => $ensure }
debug ( "munin_plugin: making $plugin using src: $plugin_src" )
file { $plugin:
ensure => "$script_path/${plugin_src}",
@@ -98,6 +97,14 @@ class munin::plugins::base {
$munin_node_service = "munin-node"
$munin_node_package = "munin-node"
}
+ centos: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
+ }
+ default: {
+ $munin_node_service = "munin-node"
+ $munin_node_package = "munin-node"
+ }
}
file {
[ "/etc/munin/plugins", "/etc/munin/plugin-conf.d" ]:
@@ -155,5 +162,8 @@ class munin::plugins::vserver inherits munin::plugins::base {
}
class munin::plugins::gentoo inherits munin::plugins::base {
+}
+class munin::plugins::centos inherits munin::plugins::base {
}
+