summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2007-12-04 16:51:56 +0000
committerandreas <andreas@immerda.ch>2007-12-04 16:51:56 +0000
commit5303631ee3cb0c2ee7ddaa6c4471ccdcf886cd7e (patch)
treed355ec1875d3d3e403645a92451885223a468b20 /manifests
parentbae3e1e87d1e2e73bfbaf6684ea89efa67c370d3 (diff)
munin-node only on debian/etc...
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp16
1 files changed, 10 insertions, 6 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index c107f41..81d8ed4 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -16,12 +16,16 @@ 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}",
- require => Package["munin-node"],
- notify => Service["munin-node"],
+ case $operatingsystem {
+ debian: {
+ $plugin_src = $ensure ? { "present" => $name, default => $ensure }
+ debug ( "munin_plugin: making $plugin using src: $plugin_src" )
+ file { $plugin:
+ ensure => "$script_path/${plugin_src}",
+ require => Package["munin-node"],
+ notify => Service["munin-node"],
+ }
+ }
}
}
}