merged with github
authorMarcel Haerry <haerry@puzzle.ch>
Mon, 19 May 2008 16:51:53 +0000 (18:51 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Mon, 19 May 2008 16:51:53 +0000 (18:51 +0200)
1  2 
manifests/plugin.pp

@@@ -118,19 -107,11 +118,17 @@@ define munin::plugin::deploy ($source 
      file { "munin_plugin_${name}":
              path => "$munin::plugin::scriptpaths::script_path/${name}",
              source => "puppet://$server/$real_source",
 -            ensure => file,
 +                      require => Package['munin-node'],
              mode => 0755, owner => root, group => 0;
      }
 -
 -    munin::plugin{$name: ensure => $ensure, config => $config }
 +    if $require {
 +        File["munin_plugin_${name}"]{
 +            require +> $require,
 +        }
 +        munin::plugin{$name: ensure => $ensure, config => $config, require => $require }
 +    } else {
 +        munin::plugin{$name: ensure => $ensure, config => $config }
 +    }
-     
  }
  
  ### clases for plugins