Added temporary fix for broken munin-node logrotate config
This commit is contained in:
parent
2fb5e23673
commit
963f1d1bfc
2 changed files with 22 additions and 0 deletions
9
munin/files/munin-node.logrotate
Normal file
9
munin/files/munin-node.logrotate
Normal file
|
@ -0,0 +1,9 @@
|
|||
/var/log/munin-node/munin-node.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 7
|
||||
compress
|
||||
copytruncate
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue