diff --git a/munin/files/munin-node.logrotate b/munin/files/munin-node.logrotate new file mode 100644 index 0000000..2a12c07 --- /dev/null +++ b/munin/files/munin-node.logrotate @@ -0,0 +1,9 @@ +/var/log/munin-node/munin-node.log { + daily + missingok + rotate 7 + compress + copytruncate + notifempty + create 644 root root +} diff --git a/munin/manifests/init.pp b/munin/manifests/init.pp index 45e0044..bc7db4c 100644 --- a/munin/manifests/init.pp +++ b/munin/manifests/init.pp @@ -61,6 +61,19 @@ class munin::node { notify => Service["munin-node"], } + # Temporary fix for broken config + case $::operatingsystem { + "centos","fedora","redhat": { + file { "/etc/logrotate.d/munin-node": + ensure => present, + mode => "0644", + owner => "root", + group => "root", + source => "puppet:///modules/munin/munin-node.logrotate", + } + } + } + }