it is not anymore necessary to add an empty source to purge directories
[puppet_munin.git] / manifests / plugins / setup.pp
1 class munin::plugins::setup {
2   file {
3     [ '/etc/munin/plugins', '/etc/munin/plugin-conf.d' ]:
4       ignore => 'snmp_*',
5       ensure => directory, checksum => mtime,
6       recurse => true, purge => true, force => true,
7       mode => 0755, owner => root, group => 0,
8       notify => Service['munin-node'];
9     '/etc/munin/plugin-conf.d/munin-node':
10       ensure => present,
11       mode => 0644, owner => root, group => 0,
12       notify => Service['munin-node'],
13   }
14   case $kernel {
15     openbsd: {
16       File['/etc/munin/plugin-conf.d/munin-node']{
17         before => File['/var/run/munin'],
18       }
19     }
20     default: {
21       File['/etc/munin/plugin-conf.d/munin-node']{
22         before => Package['munin-node'],
23       }
24     }
25   }
26 }