Merge pull request #418 from enovance/keystone-db-sync
identity: write db_sync logging in another log file
This commit is contained in:
commit
9b4d6cb0ea
@ -558,7 +558,9 @@ class cloud::identity (
|
||||
# We have to do this only on the primary node of the galera cluster to avoid race condition
|
||||
# https://github.com/enovance/puppet-openstack-cloud/issues/156
|
||||
exec {'keystone_db_sync':
|
||||
command => '/usr/bin/keystone-manage db_sync',
|
||||
command => 'keystone-manage db_sync',
|
||||
path => '/usr/bin',
|
||||
user => 'keystone',
|
||||
unless => "/usr/bin/mysql keystone -h ${keystone_db_host} -u ${encoded_user} -p${encoded_password} -e \"show tables\" | /bin/grep Tables"
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,9 @@ describe 'cloud::identity' do
|
||||
|
||||
it 'checks if Keystone DB is populated' do
|
||||
should contain_exec('keystone_db_sync').with(
|
||||
:command => '/usr/bin/keystone-manage db_sync',
|
||||
:command => 'keystone-manage db_sync',
|
||||
:path => '/usr/bin',
|
||||
:user => 'keystone',
|
||||
:unless => '/usr/bin/mysql keystone -h 10.0.0.1 -u keystone -psecrete -e "show tables" | /bin/grep Tables'
|
||||
)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user