diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2008-05-20 12:22:53 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2008-05-20 12:22:53 +0200 |
commit | 5d77d0429ccfb352c38ef8fee55b1a6658dab484 (patch) | |
tree | 9c63eb584910708325d5b12380e06c4bb2aaaf76 /manifests | |
parent | 5cacec6d225c476e48640f327e824fafa38255f0 (diff) |
fixed require order
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/plugin.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index af2c9e0..22a8a7f 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -45,17 +45,17 @@ define munin::plugin ( } default: { debug ( "munin_plugin: making $plugin using src: $plugin_src" ) + if $require { + $real_require = [ $require, Package['munin-node'] ] + } else { + $real_require = Package['munin-node'] + } file { $plugin: ensure => "${real_script_path}/${plugin_src}", - require => Package['munin-node'], + require => $require, notify => Service['munin-node']; } - if $require { - File[$plugin]{ - require +> $require, - } - } } } case $config { |