From cd6347c0f6be625fb301491ea25241c3dc9d37ea Mon Sep 17 00:00:00 2001 From: Adam Rozman Date: Thu, 12 Dec 2024 13:28:44 +0200 Subject: [PATCH] make deep image inspection configurable This commit: - Implements the support for disabling the deep_image_inspection via environment variable. This new functionality is needed because e.g right now the Ironic&IPA has issues running deep image inspection on e.g. live-iso images. Signed-off-by: Adam Rozman --- ironic-config/ironic.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ironic-config/ironic.conf.j2 b/ironic-config/ironic.conf.j2 index 561d6c2a5..4c4056a0a 100644 --- a/ironic-config/ironic.conf.j2 +++ b/ironic-config/ironic.conf.j2 @@ -92,6 +92,9 @@ deploy_kernel = file://{{ env.IRONIC_DEFAULT_KERNEL }} {% if env.IRONIC_DEFAULT_RAMDISK is defined %} deploy_ramdisk = file://{{ env.IRONIC_DEFAULT_RAMDISK }} {% endif %} +{% if env.DISABLE_DEEP_IMAGE_INSPECTION | lower == "true" %} +disable_deep_image_inspection = True +{% endif %} [database] {% if env.IRONIC_USE_MARIADB | lower == "false" %}