From 5a0d590ef0e707427f06feb5130d0360843e850b Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 29 Jun 2016 11:12:17 -0400 Subject: 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 --- manifests/profile/base/nova.pp | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'manifests/profile/base/nova.pp') 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, + } + } + } + } -- cgit 1.2.3-korg