Run sync in step 3 when $sync_db
authorGiulio Fidente <gfidente@redhat.com>
Fri, 22 Apr 2016 17:19:33 +0000 (19:19 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Fri, 22 Apr 2016 17:19:33 +0000 (19:19 +0200)
This will configure the openstack services and run the initial
db sync in step 3 (instead of step 4) for the node for which
$sync_db is true.

Closes-Bug: #1572952
Change-Id: I29012ee0a8b281e4472353ee7d9d44912e8a9b6c

puppet/manifests/overcloud_controller_pacemaker.pp

index b3b6ce5..0372a56 100644 (file)
@@ -473,7 +473,7 @@ MYSQL_HOST=localhost\n",
 
 } #END STEP 2
 
-if hiera('step') >= 4 {
+if hiera('step') >= 4 or ( hiera('step') >= 3 and $sync_db ) {
 
   $nova_ipv6 = hiera('nova::use_ipv6', false)
   if $nova_ipv6 {