Added logrotate rules for munin cgi logs.

This commit is contained in:
Timo Mkinen 2012-11-22 12:30:52 +02:00
parent 24aea7045b
commit 6921abf0cb
2 changed files with 24 additions and 0 deletions

View file

@ -269,6 +269,13 @@ class munin::server {
group => $apache::sslserver::group,
require => Package["munin"],
}
file { "/etc/logrotate.d/munin-cgi":
ensure => present,
content => template("munin/munin-cgi.logrotate.erb"),
mode => "0644",
owner => "root",
group => "root",
}
file { "/var/www/html/munin/.htaccess":
ensure => present,

View file

@ -0,0 +1,17 @@
/var/log/munin/munin-cgi-graph.log {
daily
missingok
rotate 7
compress
notifempty
create 0664 munin <%= scope.lookupvar('apache::sslserver::group') %>
}
/var/log/munin/munin-cgi-html.log {
daily
missingok
rotate 7
compress
notifempty
create 0664 munin <%= scope.lookupvar('apache::sslserver::group') %>
}