fix path for munin-log file
[puppet_munin.git] / manifests / remoteplugin.pp
1 define munin::remoteplugin($ensure = "present", $source, $config = '') {
2   case $ensure {
3     "absent": { munin::plugin{ $name: ensure => absent } }
4     default: {
5       file {
6         "/var/lib/puppet/modules/munin/plugins/${name}":
7           source => $source,
8           mode => 0755, owner => root, group => 0;
9       }
10       munin::plugin { $name:
11         ensure => $ensure,
12         config => $config,
13         script_path_in => "/var/lib/puppet/modules/munin/plugins",
14       }
15     }
16   }
17 }
18