Fix mistral sync_db profile steps
authorCarlos Camacho <ccamacho@redhat.com>
Tue, 9 Aug 2016 14:22:50 +0000 (16:22 +0200)
committerCarlos Camacho <ccamacho@redhat.com>
Tue, 9 Aug 2016 14:32:45 +0000 (16:32 +0200)
The services in the mistral profiles were
limited to be executed only in the
bootstrap master node.

Change-Id: Iae42ffa37c4c9b1e070b7c3753e04c45bb97703f

manifests/profile/base/mistral.pp
manifests/profile/base/mistral/api.pp
manifests/profile/base/mistral/engine.pp
manifests/profile/base/mistral/executor.pp

index febbae6..0c41193 100644 (file)
@@ -41,7 +41,7 @@ class tripleo::profile::base::mistral (
     include ::mistral::db::mysql
   }
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 or ($step >= 3 and $sync_db) {
     include ::mistral
     include ::mistral::config
     include ::mistral::client
index aeff788..50708f1 100644 (file)
@@ -39,7 +39,7 @@ class tripleo::profile::base::mistral::api (
 
   include ::tripleo::profile::base::mistral
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 or ($step >= 3 and $sync_db) {
     include ::mistral::api
   }
 }
index cf82237..b2d8864 100644 (file)
@@ -39,7 +39,7 @@ class tripleo::profile::base::mistral::engine (
 
   include ::tripleo::profile::base::mistral
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 or ($step >= 3 and $sync_db)  {
     include ::mistral::engine
   }
 
index dd8c642..8e3f2c9 100644 (file)
@@ -39,7 +39,7 @@ class tripleo::profile::base::mistral::executor (
 
   include ::tripleo::profile::base::mistral
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 or ($step >= 3 and $sync_db)  {
     include ::mistral::executor
   }
 }