Logrotate the hound log
Since the hound log is now growing instead of being continually overwritten, it needs to be rotated. This log isn't very large, but this is good hygiene. Change-Id: I5c04e75bf867f9001dfc7aaeb62e8a4d023c25bd
This commit is contained in:
parent
ef64c1a46a
commit
a520d6115d
|
@ -116,4 +116,24 @@ class hound (
|
|||
template => 'hound/hound.vhost.erb',
|
||||
}
|
||||
|
||||
file { '/var/log/hound.log':
|
||||
owner => 'hound',
|
||||
group => 'hound',
|
||||
mode => '0644',
|
||||
require => User['hound'],
|
||||
}
|
||||
|
||||
logrotate::file { 'houndlog':
|
||||
ensure => present,
|
||||
log => '/var/log/hound.log',
|
||||
options => ['compress',
|
||||
'copytruncate',
|
||||
'delaycompress',
|
||||
'missingok',
|
||||
'rotate 7',
|
||||
'daily',
|
||||
'notifempty',
|
||||
],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue