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:
Spencer Krum 2016-01-06 14:22:06 -08:00
parent ef64c1a46a
commit a520d6115d
1 changed files with 20 additions and 0 deletions

View File

@ -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',
],
}
}