aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker/neutron/server.pp
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-10 12:35:52 +0000
committerGerrit Code Review <review@openstack.org>2016-06-10 12:35:52 +0000
commit72fb6727951af2cf5b16e686b3a36f5f3a7c71c7 (patch)
tree74e732fde0eea35f63801b92dc1cede5196528cb /manifests/profile/pacemaker/neutron/server.pp
parentab2bb3fea83912a2aa8795b93d59a9ed6f9e37e0 (diff)
parent6554ebbeb5dd351fc7af71a3f0eb97eccaaaf5e4 (diff)
Merge "Make neutron server/ml2 profiles match t-h-t"
Diffstat (limited to 'manifests/profile/pacemaker/neutron/server.pp')
-rw-r--r--manifests/profile/pacemaker/neutron/server.pp22
1 files changed, 14 insertions, 8 deletions
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
}
}