Merge pull request #474 from enovance/flush-tokens
identity: flush tokens every days at midnight
This commit is contained in:
commit
f999265092
@ -5,7 +5,7 @@ fixtures:
|
|||||||
ref: '6e052620481055cffced7911a0f31bfd0849c68a'
|
ref: '6e052620481055cffced7911a0f31bfd0849c68a'
|
||||||
'keystone':
|
'keystone':
|
||||||
repo: 'git://github.com/enovance/puppet-keystone.git'
|
repo: 'git://github.com/enovance/puppet-keystone.git'
|
||||||
ref: '77dbc80de15b5ef02a5e89c8ef040e70df576a1d'
|
ref: '6aa7a17941056a7de2a7bdeeb99024b5c714f882'
|
||||||
'nova':
|
'nova':
|
||||||
repo: 'git://github.com/enovance/puppet-nova.git'
|
repo: 'git://github.com/enovance/puppet-nova.git'
|
||||||
ref: '0249428f294217c2ad5fb75f8d0a0bafac12fe9c'
|
ref: '0249428f294217c2ad5fb75f8d0a0bafac12fe9c'
|
||||||
|
@ -34,7 +34,7 @@ mod 'horizon',
|
|||||||
:ref => '36383e90d1c4013d7989561b00ffcb08c76908de'
|
:ref => '36383e90d1c4013d7989561b00ffcb08c76908de'
|
||||||
mod 'keystone',
|
mod 'keystone',
|
||||||
:git => 'git://github.com/enovance/puppet-keystone.git',
|
:git => 'git://github.com/enovance/puppet-keystone.git',
|
||||||
:ref => '77dbc80de15b5ef02a5e89c8ef040e70df576a1d'
|
:ref => '6aa7a17941056a7de2a7bdeeb99024b5c714f882'
|
||||||
mod 'neutron',
|
mod 'neutron',
|
||||||
:git => 'git://github.com/enovance/puppet-neutron.git',
|
:git => 'git://github.com/enovance/puppet-neutron.git',
|
||||||
:ref => '66c436bc2f06c5a71d79c674697394a11ec227f9'
|
:ref => '66c436bc2f06c5a71d79c674697394a11ec227f9'
|
||||||
|
@ -541,6 +541,9 @@ class cloud::identity (
|
|||||||
password => $ks_heat_password
|
password => $ks_heat_password
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Purge expored tokens every days at midnight
|
||||||
|
class { 'keystone::cron::token_flush': }
|
||||||
|
|
||||||
# Note(EmilienM):
|
# Note(EmilienM):
|
||||||
# We check if DB tables are created, if not we populate Keystone DB.
|
# We check if DB tables are created, if not we populate Keystone DB.
|
||||||
# It's a hack to fit with our setup where we run MySQL/Galera
|
# It's a hack to fit with our setup where we run MySQL/Galera
|
||||||
|
@ -260,6 +260,10 @@ describe 'cloud::identity' do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'configure a crontab to purge tokens every days at midnight' do
|
||||||
|
should contain_class('keystone::cron::token_flush')
|
||||||
|
end
|
||||||
|
|
||||||
context 'without syslog' do
|
context 'without syslog' do
|
||||||
before :each do
|
before :each do
|
||||||
params.merge!(:use_syslog => false)
|
params.merge!(:use_syslog => false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user