Parameterize the libvirt_virt_type parameter so it can be overridden

When running puppet-openstack-integration in certain contexts, for
example outside of the gate, we might want to choose a different
hypervisor such as KVM.
Making it a parameter will allow it to be overridden by hiera
easily.

Change-Id: Ie80740b67561ca21e1e81e9e571e66e8d505d940
This commit is contained in:
David Moreau-Simard 2016-08-17 16:49:06 -04:00
parent c9fae323f9
commit df8841bd39

View File

@ -5,12 +5,17 @@
# to use Libvirt RBD backend.
# Defaults to false.
#
# [*libvirt_virt_type*]
# (optional) Libvirt domain type. Options are: kvm, lxc, qemu, uml, xen
# Defaults to 'qemu'
#
# [*volume_encryption*]
# (optional) Boolean to configure or not volume encryption
# Defaults to false.
#
class openstack_integration::nova (
$libvirt_rbd = false,
$libvirt_virt_type = 'qemu',
$volume_encryption = false,
) {
@ -108,7 +113,7 @@ class openstack_integration::nova (
barbican_endpoint => $barbican_endpoint,
}
class { '::nova::compute::libvirt':
libvirt_virt_type => 'qemu',
libvirt_virt_type => $libvirt_virt_type,
migration_support => true,
vncserver_listen => '0.0.0.0',
# TODO: enable it again when puppet 4.5 will be idempotent