aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2016-06-10 14:14:57 -0400
committerDan Prince <dprince@redhat.com>2016-06-10 14:14:57 -0400
commitb46cebf80a7bcf9833fdfbd23ee2ee7b41c66463 (patch)
tree934cbb42a81963ede6be01e4bfa29872581be2dc /manifests
parent3ea42597cbe5136580955c5e13961f8b1d553d68 (diff)
Pacemaker: only create DB on pacemaker master
This fixes a bug introduced in 72fb6727951af2cf5b16e686b3a36f5f3a7c71c7 where non-master nodes would try to create the database (and potentially fail due to a race). Change-Id: Ic0c7b05618b69caca0d4019b5153163f2405bbe5
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/pacemaker/neutron/server.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/profile/pacemaker/neutron/server.pp b/manifests/profile/pacemaker/neutron/server.pp
index fa00b3e..0bad1b9 100644
--- a/manifests/profile/pacemaker/neutron/server.pp
+++ b/manifests/profile/pacemaker/neutron/server.pp
@@ -35,12 +35,12 @@ class tripleo::profile::pacemaker::neutron::server (
include ::neutron::params
include ::tripleo::profile::pacemaker::neutron
- if $step >= 2 {
+ $sync_db = ($::hostname == downcase($pacemaker_master))
+ if $step >= 2 and $sync_db {
include ::neutron::db::mysql
Exec<| title == 'galera-ready'|> -> Class['neutron::db::mysql']
}
- $sync_db = ($::hostname == downcase($pacemaker_master))
if $step >= 4 or ( $step >= 3 and $sync_db ) {
include ::neutron::server::notifications
include ::neutron::server