Create dbs in step 3 for the roles
authorGiulio Fidente <gfidente@redhat.com>
Wed, 4 May 2016 13:16:54 +0000 (15:16 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Wed, 4 May 2016 13:20:44 +0000 (15:20 +0200)
Before the roles we could make the create db operation depend on a
'galera-ready' resource [1]. We can't do it anymore from the role so
we need to do create in step 3, when we do sync as well.

1. https://github.com/openstack/tripleo-heat-templates/blob/master/puppet/manifests/overcloud_controller_pacemaker.pp#L382

Change-Id: Id065a9180f1f1a41ab225ec5f755498ec7d9a827

manifests/profile/base/glance/registry.pp
manifests/profile/base/keystone.pp

index c114c53..b77b356 100644 (file)
@@ -47,7 +47,7 @@ class tripleo::profile::base::glance::registry (
   $glance_backend = downcase(hiera('glance_backend', 'swift')),
 ) {
 
-  if $step >= 2 and $sync_db {
+  if $step >= 3 and $sync_db {
     include ::glance::db::mysql
   }
 
index f7674df..2f7a27a 100644 (file)
@@ -62,7 +62,7 @@ class tripleo::profile::base::keystone (
   $step             = hiera('step'),
 ) {
 
-  if $step >= 2 and $sync_db {
+  if $step >= 3 and $sync_db {
     include ::keystone::db::mysql
   }