Merge pull request #418 from enovance/keystone-db-sync

identity: write db_sync logging in another log file
This commit is contained in:
Sebastien Badia 2014-04-15 11:44:27 +02:00
commit 9b4d6cb0ea
2 changed files with 6 additions and 2 deletions

View File

@ -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"
}

View File

@ -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