diff --git a/backend_modules/libvirt/host/combustion b/backend_modules/libvirt/host/combustion index 2fb212e87..70979ef0d 100644 --- a/backend_modules/libvirt/host/combustion +++ b/backend_modules/libvirt/host/combustion @@ -77,7 +77,16 @@ zypper ar http://${ use_mirror_images ? mirror : "download.opensuse.org" }/updat %{ if image == "slmicro60o" } zypper ar http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SL-Micro/6.0/x86_64/product/ os_pool_repo + +# SL Micro 6.0 is being used in both Uyuni and SUSE Manager +# we do not support yet Leap Micro 6.0, even in Uyuni +%{ if is_uyuni } zypper ar http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Master:/SLMicro6-Uyuni-Client-Tools/SL-Micro6/ client_tools_repo +%{ else } +zypper ar http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Manager-Tools/15/x86_64/product/ tools_pool_repo +zypper ar http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Manager-Tools/15/x86_64/update/ tools_update_repo +%{ endif } + %{ if testsuite } zypper ar http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Test-Packages:/Pool/rpm/ test_repo_rpm_pool %{ endif } diff --git a/backend_modules/libvirt/host/main.tf b/backend_modules/libvirt/host/main.tf index 9a165d31d..4d081d11f 100644 --- a/backend_modules/libvirt/host/main.tf +++ b/backend_modules/libvirt/host/main.tf @@ -91,6 +91,7 @@ data "template_file" "combustion" { additional_repos = join(" ", [for key, value in var.additional_repos : "${key}=${value}"]) image = var.image product_version = local.product_version + is_uyuni = length(regexall("uyuni", local.product_version)) > 0 } }