aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/neutron.pp
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-06-06 10:05:31 +0300
committerDan Prince <dprince@redhat.com>2016-06-07 14:08:37 -0400
commita764891ee33554be65916f8afeea81189b1139a6 (patch)
tree50883e868abedc28f95388b078c2ccccbc980596 /manifests/profile/base/neutron.pp
parentbc85802b9e94b1a010b12134bff917c880a5be02 (diff)
Include neutron in step 3
neutron::server requires the neutron's init.pp to be ran beforehand because init.pp installs the 'neutron' package. Else the relationship with neutron::policy will fail [1].So to address this, we move neutron's init.pp to be ran on step 3 if db_sync is enabled. [1] https://github.com/openstack/puppet-neutron/blob/master/manifests/server.pp#L498 Change-Id: I8eb497c2b483e11d1f640a7ba9fae5a9d5bcef4d
Diffstat (limited to 'manifests/profile/base/neutron.pp')
-rw-r--r--manifests/profile/base/neutron.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/profile/base/neutron.pp b/manifests/profile/base/neutron.pp
index 2958170..d5efa81 100644
--- a/manifests/profile/base/neutron.pp
+++ b/manifests/profile/base/neutron.pp
@@ -18,14 +18,19 @@
#
# === Parameters
#
+# [*sync_db*]
+# (Optional) Whether to run db sync
+# Defaults to true
+#
# [*step*]
# (Optional) The current step of the deployment
# Defaults to hiera('step')
#
class tripleo::profile::base::neutron (
- $step = hiera('step'),
+ $sync_db = true,
+ $step = hiera('step'),
) {
- if $step >= 4 {
+ if hiera('step') >= 4 or ( hiera('step') >= 3 and $sync_db ) {
include ::neutron
include ::neutron::config
}