Fix deployment steps for AODH profiles
authorCarlos Camacho <ccamacho@redhat.com>
Mon, 8 Aug 2016 11:43:37 +0000 (13:43 +0200)
committerCarlos Camacho <ccamacho@redhat.com>
Wed, 17 Aug 2016 08:21:48 +0000 (10:21 +0200)
The services in the AODH profiles were
limited to be executed only in the
bootstrap master node.

Change-Id: I85cfa97f0e5e9a70e86e51d8188a2abf86e2ec1c

manifests/profile/base/aodh.pp
manifests/profile/base/aodh/api.pp
manifests/profile/base/aodh/evaluator.pp
manifests/profile/base/aodh/listener.pp
manifests/profile/base/aodh/notifier.pp

index 28156a0..07c0a88 100644 (file)
@@ -42,7 +42,7 @@ class tripleo::profile::base::aodh (
     include ::aodh::db::mysql
   }
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 or ($step >= 3 and $sync_db) {
     include ::aodh
     include ::aodh::auth
     include ::aodh::config
index 3aa436d..19ecfaf 100644 (file)
@@ -40,7 +40,7 @@ class tripleo::profile::base::aodh::api (
 
   include ::tripleo::profile::base::aodh
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 {
     include ::aodh::api
     include ::aodh::wsgi::apache
   }
index 46d1d14..ca506bc 100644 (file)
@@ -40,7 +40,7 @@ class tripleo::profile::base::aodh::evaluator (
 
   include ::tripleo::profile::base::aodh
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 {
     include ::aodh::evaluator
   }
 
index 93f37fa..57ad27f 100644 (file)
@@ -40,7 +40,7 @@ class tripleo::profile::base::aodh::listener (
 
   include ::tripleo::profile::base::aodh
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 {
     include ::aodh::listener
   }
 
index 0686012..03a0a6f 100644 (file)
@@ -40,7 +40,7 @@ class tripleo::profile::base::aodh::notifier (
 
   include ::tripleo::profile::base::aodh
 
-  if $step >= 4 and $sync_db {
+  if $step >= 4 {
     include ::aodh::notifier
   }