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/ml2.pp15
-rw-r--r--manifests/profile/pacemaker/neutron/server.pp22
2 files changed, 27 insertions, 10 deletions
diff --git a/manifests/profile/pacemaker/neutron/ml2.pp b/manifests/profile/pacemaker/neutron/ml2.pp
index 6c6e580..8acaf21 100644
--- a/manifests/profile/pacemaker/neutron/ml2.pp
+++ b/manifests/profile/pacemaker/neutron/ml2.pp
@@ -18,8 +18,19 @@
#
# === Parameters
#
-class tripleo::profile::pacemaker::neutron::ml2 {
+# [*pacemaker_master*]
+# (Optional) The hostname of the pacemaker master
+# Defaults to hiera('bootstrap_nodeid')
+#
+class tripleo::profile::pacemaker::neutron::ml2 (
+ $pacemaker_master = hiera('bootstrap_nodeid'),
+) {
+
include ::neutron::params
include ::tripleo::profile::pacemaker::neutron
- include ::tripleo::profile::base::neutron::ml2
+
+ class { '::tripleo::profile::base::neutron::ml2':
+ sync_db => ($::hostname == downcase($pacemaker_master))
+ }
+
}
diff --git a/manifests/profile/pacemaker/neutron/server.pp b/manifests/profile/pacemaker/neutron/server.pp
index f4fe083..fa00b3e 100644
--- a/manifests/profile/pacemaker/neutron/server.pp
+++ b/manifests/profile/pacemaker/neutron/server.pp
@@ -23,21 +23,27 @@
# Defaults to hiera('bootstrap_nodeid')
#
# [*step*]
-# (Optional) The current step in deployment. See tripleo-heat-templates
-# for more details.
-# Defaults to hiera('step')
+# (Optional) The current step in deployment. See tripleo-heat-templates
+# for more details.
+# Defaults to hiera('step')
#
class tripleo::profile::pacemaker::neutron::server (
$pacemaker_master = hiera('bootstrap_nodeid'),
- $step = hiera('step'),
+ $step = hiera('step'),
) {
+
include ::neutron::params
include ::tripleo::profile::pacemaker::neutron
- if $step >= 5 {
- class { '::tripleo::profile::base::neutron::server':
- sync_db => ($::hostname == downcase($pacemaker_master)),
- }
+ if $step >= 2 {
+ 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
}
}