summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2016-06-29 11:12:17 -0400
committerEmilien Macchi <emilien@redhat.com>2016-06-29 20:02:18 +0000
commit5a0d590ef0e707427f06feb5130d0360843e850b (patch)
treefded1540babae5883f15953e20dc00cec72dab02 /manifests/profile/base
parentae821d82bc5031998c1d5c4b07094d603cb8b208 (diff)
nova: manage migration bits in a composable way
Allow to enable/disable migration bits from a single place, and select which services are running on a node. The use case here is to allow container deployements where libvirt & nova-compute are separated. Also support collocation for backward compatibility. Change-Id: I0b765f8cb08633005c1fc5a5a2a8e5658ff44302
Diffstat (limited to 'manifests/profile/base')
-rw-r--r--manifests/profile/base/nova.pp27
1 files changed, 26 insertions, 1 deletions
diff --git a/manifests/profile/base/nova.pp b/manifests/profile/base/nova.pp
index 66f0d7d..52a4c73 100644
--- a/manifests/profile/base/nova.pp
+++ b/manifests/profile/base/nova.pp
@@ -22,8 +22,23 @@
# (Optional) The current step of the deployment
# Defaults to hiera('step')
#
+# [*manage_migration*]
+# (Optional) Whether or not manage Nova Live migration
+# Defaults to false
+#
+# [*libvirt_enabled*]
+# (Optional) Whether or not Libvirt is enabled.
+# Defaults to false
+#
+# [*nova_compute_enabled*]
+# (Optional) Whether or not nova-compute is enabled.
+# Defaults to false
+#
class tripleo::profile::base::nova (
- $step = hiera('step'),
+ $step = hiera('step'),
+ $manage_migration = false,
+ $libvirt_enabled = false,
+ $nova_compute_enabled = false,
) {
if hiera('nova::use_ipv6', false) {
@@ -41,4 +56,14 @@ class tripleo::profile::base::nova (
}
include ::nova::config
}
+
+ if $step >= 4 {
+ if $manage_migration {
+ class { '::nova::migration::libvirt':
+ configure_libvirt => $libvirt_enabled,
+ configure_nova => $nova_compute_enabled,
+ }
+ }
+ }
+
}