Skip to content

Commit

Permalink
token flushing: don't override log file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Emilien Macchi committed Sep 1, 2014
1 parent de177f5 commit d080da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/cron/token_flush.pp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
) {

cron { 'keystone-manage token_flush':
command => 'keystone-manage token_flush >/var/log/keystone/keystone-tokenflush.log 2>&1',
command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1',
environment => 'PATH=/bin:/usr/bin:/usr/sbin',
user => 'keystone',
minute => $minute,
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/keystone_cron_token_flush_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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',
:command => 'keystone-manage token_flush >>/var/log/keystone/keystone-tokenflush.log 2>&1',
:environment => 'PATH=/bin:/usr/bin:/usr/sbin',
:user => 'keystone',
:minute => 1,
Expand Down

0 comments on commit d080da7

Please sign in to comment.