aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/panko.pp
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-03-10 11:44:56 +0200
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-03-10 12:11:34 +0200
commitd73c2630b534b277122db68620be8923c4d3a6b4 (patch)
treea20634813d224c81ba115ed91d872c086e44abea /manifests/profile/base/panko.pp
parent9bc973e3f42c754ee7c6d66f68ce13b08eec787a (diff)
panko: Do db_sync in api manifest
The db_sync from panko comes from the panko-api package; So we move the db_sync to be done in the api manifest as it's done for other services such as barbican. This is necessary since in cases where the overcloud deploy requires puppet to do the installations, with the previous setup it failed since the command wasn't available in the step it was being done. Change-Id: I20a549cbaa2ee4b2c762dbae97f5cbf4d0b517c8 Closes-Bug: #1671716
Diffstat (limited to 'manifests/profile/base/panko.pp')
-rw-r--r--manifests/profile/base/panko.pp18
1 files changed, 2 insertions, 16 deletions
diff --git a/manifests/profile/base/panko.pp b/manifests/profile/base/panko.pp
index 880cf7d..286e4ac 100644
--- a/manifests/profile/base/panko.pp
+++ b/manifests/profile/base/panko.pp
@@ -23,26 +23,12 @@
# for more details.
# Defaults to hiera('step')
#
-# [*bootstrap_node*]
-# (Optional) The hostname of the node responsible for bootstrapping tasks
-# Defaults to hiera('bootstrap_nodeid')
class tripleo::profile::base::panko (
- $step = hiera('step'),
- $bootstrap_node = hiera('bootstrap_nodeid', undef),
+ $step = hiera('step'),
) {
-
- if $::hostname == downcase($bootstrap_node) {
- $sync_db = true
- } else {
- $sync_db = false
- }
-
- if $step >= 4 or ($step >= 3 and $sync_db) {
+ if $step >= 3 {
include ::panko
- include ::panko::db
include ::panko::config
- include ::panko::db::sync
}
-
}