Log bandersnatch to file
Instead of cronspam, maybe we should put the output into logfiles. Change-Id: I22586011a1abd2ce7280564cb4e8b2166c7ad820
This commit is contained in:
parent
f1b905d07e
commit
b38f92b8ac
@ -220,10 +220,26 @@ class openstack_project::static (
|
||||
source => 'puppet:///modules/openstack_project/bandersnatch.conf',
|
||||
}
|
||||
|
||||
file { '/var/log/bandersnatch':
|
||||
ensure => directory,
|
||||
}
|
||||
|
||||
cron { 'bandersnatch':
|
||||
minute => '*/5',
|
||||
command => 'bandersnatch mirror',
|
||||
command => 'bandersnatch mirror >>/var/log/bandersnatch/mirror.log 2>&1',
|
||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
include logrotate
|
||||
logrotate::file { 'bandersnatch':
|
||||
log => '/var/log/bandersnatch/mirror.log',
|
||||
options => [
|
||||
'compress',
|
||||
'copytruncate',
|
||||
'missingok',
|
||||
'rotate 7',
|
||||
'daily',
|
||||
'notifempty',
|
||||
],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user