aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker/database
diff options
context:
space:
mode:
authorMichael Chapman <woppin@gmail.com>2016-04-20 01:10:13 +1000
committerMichael Chapman <woppin@gmail.com>2016-04-20 01:10:13 +1000
commit7e0534d546756cba0a91d7751f5048b94bc5e0d8 (patch)
tree141601a70a0a00e126b4350ba03ed91423340170 /manifests/profile/pacemaker/database
parent33c6afe89ade18f3017158bddf60c1e51937583e (diff)
Add steps to database profiles
Database schema profiles were missing step information, causing schemas to be created too early. Change-Id: Ic381804ce5f1aa257ece75d2e079f4b02f446344
Diffstat (limited to 'manifests/profile/pacemaker/database')
-rw-r--r--manifests/profile/pacemaker/database/schemas.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/profile/pacemaker/database/schemas.pp b/manifests/profile/pacemaker/database/schemas.pp
index 6aa5906..b301bab 100644
--- a/manifests/profile/pacemaker/database/schemas.pp
+++ b/manifests/profile/pacemaker/database/schemas.pp
@@ -18,6 +18,10 @@
#
# === Parameters
#
+# [*step*]
+# (Optional) The current deployment step
+# Defaults to hiera('step')
+#
# [*ceilometer_backend*]
# (Optional) The backend used by ceilometer, usually either 'mysql'
# or 'mongodb'
@@ -28,10 +32,11 @@
# Defaults to hiera('bootstrap_nodeid')
#
class tripleo::profile::pacemaker::database::schemas (
+ $step = hiera('step'),
$ceilometer_backend = hiera('ceilometer_backend'),
$pacemaker_master = hiera('bootstrap_nodeid')
) {
- if downcase($pacemaker_master) == $::hostname {
+ if downcase($pacemaker_master) == $::hostname and $step >= 2 {
include ::tripleo::profile::base::database::schemas
if downcase($ceilometer_backend) == 'mysql' {