diff options
author | 2016-07-01 13:20:28 +0000 | |
---|---|---|
committer | 2016-07-01 13:20:28 +0000 | |
commit | eb40fbc6903c591eaa0fc1770aa9bf635d4459df (patch) | |
tree | af6b7114d11dad3af99d694c781cbf65068ba2bb | |
parent | 3747f6ddea935fe3682b1ee57c48fbf51caadacc (diff) | |
parent | 5a0d590ef0e707427f06feb5130d0360843e850b (diff) |
Merge "nova: manage migration bits in a composable way"
-rw-r--r-- | manifests/profile/base/nova.pp | 27 |
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, + } + } + } + } |