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
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