summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 16:51:56 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2007-12-04 16:51:56 +0000
commit3f8bc12721953212d2e3b0d9142a3e45d9c80c70 (patch)
treed355ec1875d3d3e403645a92451885223a468b20 /manifests
parente3980c637e756fda0b8fd1e3f4522efcb270af85 (diff)
munin-node only on debian/etc...
git-svn-id: https://svn/ipuppet/trunk/modules/munin@186 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
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"],
+ }
+ }
}
}
}