X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmunin%2Fmanifests%2Fmaster.pp;h=6d7d2fdc78b6ce4803d49f3dce7a5844c8fe8906;hb=93bbb3585dc5f0ec8a28d616001d19065f28a41f;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..6d7d2fdc7 100644 --- a/modules/munin/manifests/master.pp +++ b/modules/munin/manifests/master.pp @@ -9,13 +9,25 @@ 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 => Exec['service apache2 reload'], + key => true, + } + file { '/etc/munin/munin-conf.d': + ensure => directory, + mode => '0755', + purge => true, + force => true, + recurse => true, + source => 'puppet:///files/empty/', + } + + Munin::Master_per_node<<| |>> + + file { '/etc/cron.d/puppet-munin-cleanup': ensure => absent; } - Munin::Master-per-node<<| |>> + concat::fragment { 'puppet-crontab--munin-master': + target => '/etc/cron.d/puppet-crontab', + source => 'puppet:///modules/munin/master-cleanup-cron', } }