Include heat base profile outside of step
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 9 Aug 2016 05:47:28 +0000 (08:47 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Sat, 13 Aug 2016 09:55:08 +0000 (09:55 +0000)
The base profile can already take the steps into account. so it's not
necessary to include it inside the if statement.

Change-Id: I7b22063db7ff4807242cc0e353dccc34be848b8d

manifests/profile/base/heat/api.pp
manifests/profile/base/heat/api_cfn.pp
manifests/profile/base/heat/api_cloudwatch.pp
manifests/profile/base/heat/engine.pp

index 68de12b..7166298 100644 (file)
@@ -26,8 +26,9 @@
 class tripleo::profile::base::heat::api (
   $step = hiera('step'),
 ) {
+  include ::tripleo::profile::base::heat
+
   if $step >= 4 {
-    include ::tripleo::profile::base::heat
     include ::heat::api
   }
 }
index 7c80fc6..c1adae6 100644 (file)
@@ -26,8 +26,9 @@
 class tripleo::profile::base::heat::api_cfn (
   $step = hiera('step'),
 ) {
+  include ::tripleo::profile::base::heat
+
   if $step >= 4 {
-    include ::tripleo::profile::base::heat
     include ::heat::api_cfn
   }
 }
index 6362275..3004db9 100644 (file)
@@ -26,8 +26,9 @@
 class tripleo::profile::base::heat::api_cloudwatch (
   $step = hiera('step'),
 ) {
+  include ::tripleo::profile::base::heat
+
   if $step >= 4 {
-    include ::tripleo::profile::base::heat
     include ::heat::api_cloudwatch
   }
 }
index 32a711f..112fad8 100644 (file)
@@ -37,12 +37,13 @@ class tripleo::profile::base::heat::engine (
     $sync_db = false
   }
 
+  include ::tripleo::profile::base::heat
+
   if $step >= 3 and $sync_db {
     include ::heat::db::mysql
   }
 
   if $step >= 4 or ( $step >= 3 and $sync_db ) {
-    include ::tripleo::profile::base::heat
     include ::heat::engine
   }