X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin%2Fmanifests%2Fmaster.pp;h=ca221b8e481c44a429bfd34bd86b4ae2aa8863a6;hb=447a9b57ca618b862e34289183d7771e729aea7f;hp=6f606e3712bd51bafa3e4ad3690c56edd5210c50;hpb=996a1160f23dbaf10a537e6502f75a0dd1dbc0b2;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin/manifests/master.pp b/modules/munin/manifests/master.pp index 6f606e371..ca221b8e4 100644 --- a/modules/munin/manifests/master.pp +++ b/modules/munin/manifests/master.pp @@ -9,13 +9,21 @@ class munin::master { require => Package['munin']; } - if $::hostname == 'menotti' { - file { '/etc/munin/munin-conf.d': - ensure => directory, - mode => 755, - ; - } + ssl::service { 'munin.debian.org': + notify => Service['apache2'], + } + file { '/etc/munin/munin-conf.d': + ensure => directory, + mode => '0755', + purge => true, + force => true, + recurse => true, + source => 'puppet:///files/empty/', + } + + Munin::Master-per-node<<| |>> - Munin::Master-per-node<<| |>> + file { '/etc/cron.d/puppet-munin-cleanup': + source => 'puppet:///modules/munin/master-cleanup-cron', } }