rename dsa-puppet-stuff to puppet-crontab
[mirror/dsa-puppet.git] / modules / munin / manifests / master.pp
1 class munin::master {
2
3         package { 'munin':
4                 ensure => installed
5         }
6
7         file { '/etc/munin/munin.conf':
8                 content => template('munin/munin.conf.erb'),
9                 require => Package['munin'];
10         }
11
12         ssl::service { 'munin.debian.org':
13                 notify  => Exec['service apache2 reload'],
14                 key => true,
15         }
16         file { '/etc/munin/munin-conf.d':
17                 ensure  => directory,
18                 mode    => '0755',
19                 purge   => true,
20                 force   => true,
21                 recurse => true,
22                 source  => 'puppet:///files/empty/',
23         }
24
25         Munin::Master_per_node<<| |>>
26
27         file { '/etc/cron.d/puppet-munin-cleanup': ensure => absent; }
28
29         concat::fragment { 'puppet-crontab--munin-master':
30                 target => '/etc/cron.d/puppet-crontab',
31                 source => 'puppet:///modules/munin/master-cleanup-cron',
32         }
33 }