nova: Set the images_type parameter

Depends-on: https://review.opendev.org/776931
Change-Id: Idffda7d8d365413eb1f77d5e5e50e505f8d42f22
This commit is contained in:
Takashi Kajinami 2021-03-29 10:10:27 +09:00
parent d50073e8ee
commit eafe25c176

View File

@ -167,6 +167,11 @@ class openstack_integration::nova (
barbican_auth_endpoint => $keymgr_auth_endpoint,
barbican_endpoint => $barbican_endpoint,
}
$images_type = $libvirt_rbd ? {
true => 'rbd',
false => $::os_service_default
}
class { 'nova::compute::libvirt':
virt_type => $libvirt_virt_type,
cpu_mode => $libvirt_cpu_mode,
@ -176,6 +181,7 @@ class openstack_integration::nova (
# https://tickets.puppetlabs.com/browse/PUP-6370
virtlock_service_name => false,
virtlog_service_name => false,
images_type => $images_type,
}
if $libvirt_rbd {
class { 'nova::compute::rbd':