X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin%2Fmanifests%2Fmaster.pp;h=493b9876067bf1c246ad20f1cc713d6d122122ea;hb=22f63daee2fb8fd94cf256933f8b6ae4c2c81364;hp=c097a3e3c7d0258f7041b20a14f029b561e38678;hpb=806b9885875cb9a589ad8f54df0114b12a8e1d4f;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin/manifests/master.pp b/modules/munin/manifests/master.pp index c097a3e3c..493b98760 100644 --- a/modules/munin/manifests/master.pp +++ b/modules/munin/manifests/master.pp @@ -9,17 +9,25 @@ class munin::master { require => Package['munin']; } - if $::hostname == 'menotti' { - ssl::service { 'munin.debian.org': } - file { '/etc/munin/munin-conf.d': - ensure => directory, - mode => '0755', - purge => true, - force => true, - recurse => true, - source => 'puppet:///files/empty/', - } + 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 { 'dsa-puppet-stuff--munin-master': + target => '/etc/cron.d/dsa-puppet-stuff', + source => 'puppet:///modules/munin/master-cleanup-cron', } }