From d10cb77f9ba7c1101b5d0f4c40457880febf4502 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 12 Jul 2021 10:07:04 +0200 Subject: [PATCH] copr-hv: upload images only to appropriate hypervisors --- roles/copr/backend/templates/provision/upload-qcow2-images | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/copr/backend/templates/provision/upload-qcow2-images b/roles/copr/backend/templates/provision/upload-qcow2-images index 14ac1b8eb8..c1dd3c8577 100755 --- a/roles/copr/backend/templates/provision/upload-qcow2-images +++ b/roles/copr/backend/templates/provision/upload-qcow2-images @@ -6,7 +6,11 @@ image=$1 connections=' {% for host in groups["copr_hypervisor"] %} +{% for arch in ["p08", "x86"] %} +{% if arch in inventory_hostname and arch in hostvars[host]['inventory_hostname'] %} qemu+ssh://copr@{{ hostvars[host]['inventory_hostname'] }}/system +{% endif %} +{% endfor %} {% endfor %} '