add a reference to #156

we ensure we call 'db sync' scripts only once.
This commit is contained in:
Gonéri Le Bouder
2014-02-04 16:21:03 +01:00
parent 82a32eaee0
commit 7797b4986c
6 changed files with 20 additions and 0 deletions

View File

@@ -528,6 +528,9 @@ class cloud::identity (
# Note(EmilienM):
# 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
# TODO(Gonéri)
# We have to do this only on the primary node of the galera cluster to avoid race condition
# https://github.com/enovance/puppet-cloud/issues/156
exec {'keystone_db_sync':
command => '/usr/bin/keystone-manage db_sync',
unless => "/usr/bin/mysql keystone -h ${keystone_db_host} -u ${encoded_user} -p${encoded_password} -e \"show tables\" | /bin/grep Tables"