From eafe25c1762139fe8d7512fc89e84fffca32725e Mon Sep 17 00:00:00 2001
From: Takashi Kajinami <tkajinam@redhat.com>
Date: Mon, 29 Mar 2021 10:10:27 +0900
Subject: [PATCH] nova: Set the images_type parameter

Depends-on: https://review.opendev.org/776931
Change-Id: Idffda7d8d365413eb1f77d5e5e50e505f8d42f22
---
 manifests/nova.pp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/manifests/nova.pp b/manifests/nova.pp
index 4443663c6..3b2e6acc6 100644
--- a/manifests/nova.pp
+++ b/manifests/nova.pp
@@ -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':