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