aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker/neutron
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/profile/pacemaker/neutron')
-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