Added logrotate rules for munin cgi logs.
This commit is contained in:
parent
24aea7045b
commit
6921abf0cb
2 changed files with 24 additions and 0 deletions
|
@ -269,6 +269,13 @@ class munin::server {
|
||||||
group => $apache::sslserver::group,
|
group => $apache::sslserver::group,
|
||||||
require => Package["munin"],
|
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":
|
file { "/var/www/html/munin/.htaccess":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
|
17
munin/templates/munin-cgi.logrotate.erb
Normal file
17
munin/templates/munin-cgi.logrotate.erb
Normal 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') %>
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue