
Modify the crontab which flush old tokens to not override the log file, and avoid deleting previous logs. Change-Id: I11566d62b633f2d396badcb0b3e99f62929dfec9 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
22 lines
544 B
Ruby
22 lines
544 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'keystone::cron::token_flush' do
|
|
|
|
let :facts do
|
|
{ :osfamily => 'Debian' }
|
|
end
|
|
|
|
it 'configures a cron' do
|
|
should contain_cron('keystone-manage token_flush').with(
|
|
:command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1',
|
|
:environment => 'PATH=/bin:/usr/bin:/usr/sbin',
|
|
:user => 'keystone',
|
|
:minute => 1,
|
|
:hour => 0,
|
|
:monthday => '*',
|
|
:month => '*',
|
|
:weekday => '*'
|
|
)
|
|
end
|
|
end
|