Merge "Add logging to manage-projects calls"
This commit is contained in:
commit
7ab65892db
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user