diff options
author | mh <mh@immerda.ch> | 2010-07-01 04:43:09 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-07-01 04:43:09 +0200 |
commit | e7d23dabf191c5416197af0b229fc90b94539405 (patch) | |
tree | bf9d1f220eb8c0ef176529e2ab18717618e4ee14 /manifests/plugin.pp | |
parent | d63bc7ba3edc39e2fe7dbbefd87edac45176b13b (diff) | |
parent | f1586a7fbcc79fee6542790b1f4c930929af7e04 (diff) |
merge with lavamind
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 1fa4651..cdaa17d 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -17,10 +17,10 @@ define munin::plugin ( $plugin = "/etc/munin/plugins/$name" $plugin_conf = "/etc/munin/plugin-conf.d/$name.conf" case $ensure { - "absent": { - file { $plugin: ensure => absent, } - } - default: { + "absent": { + file { $plugin: ensure => absent, } + } + default: { case $kernel { openbsd: { $basic_require = File['/var/run/munin'] } default: { $basic_require = Package['munin-node'] } @@ -30,35 +30,35 @@ define munin::plugin ( } else { $real_require = $basic_require } - file { $plugin: - ensure => "${real_script_path}/${plugin_src}", - require => $real_require, - notify => Service['munin-node']; - } + file { $plugin: + ensure => "${real_script_path}/${plugin_src}", + require => $real_require, + notify => Service['munin-node']; + } - } + } } case $config { - '': { - file { $plugin_conf: ensure => absent } - } - default: { - case $ensure { - absent: { - file { $plugin_conf: ensure => absent } - } - default: { - file { $plugin_conf: - content => "[${name}]\n$config\n", - mode => 0644, owner => root, group => 0, - } + '': { + file { $plugin_conf: ensure => absent } + } + default: { + case $ensure { + absent: { + file { $plugin_conf: ensure => absent } + } + default: { + file { $plugin_conf: + content => "[${name}]\n$config\n", + mode => 0644, owner => root, group => 0, + } if $require { File[$plugin_conf]{ require +> $require, } } - } - } - } + } + } + } } } |