Merge "Add logging to manage-projects calls"

This commit is contained in:
Jenkins 2015-02-11 17:09:45 +00:00 committed by Gerrit Code Review
commit 7ab65892db
1 changed files with 15 additions and 1 deletions

View File

@ -425,7 +425,7 @@ class openstack_project::gerrit (
if ($testmode == false) {
exec { 'manage_projects':
command => '/usr/local/bin/manage-projects',
command => '/usr/local/bin/manage-projects -v >> /var/log/manage_projects.log 2>&1',
timeout => 900, # 15 minutes
subscribe => [
File['/home/gerrit2/projects.yaml'],
@ -439,6 +439,20 @@ class openstack_project::gerrit (
Class['jeepyb'],
],
}
include logrotate
logrotate::file { 'manage_projects.log':
log => '/var/log/manage_projects.log',
options => [
'compress',
'missingok',
'rotate 30',
'daily',
'notifempty',
'copytruncate',
],
require => Exec['manage_projects'],
}
}
}
file { '/home/gerrit2/review_site/bin/set_agreements.sh':