From 963f1d1bfc2256f122dccffa58f486892c6957be Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Tue, 15 Jan 2013 12:51:44 +0200 Subject: [PATCH] Added temporary fix for broken munin-node logrotate config --- munin/files/munin-node.logrotate | 9 +++++++++ munin/manifests/init.pp | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 munin/files/munin-node.logrotate 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", + } + } + } + }