Files
fedora-infra_ansible/roles/openqa/worker/templates/workers.ini.j2
Adam Williamson f1e0e0d037 Fix openqa_tap truthiness checks
Sigh, |bool doesn't do what you might think it does:
https://medium.com/opsops/wft-bool-filter-in-ansible-e7e2fd7a148f

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2022-11-25 14:58:36 -08:00

14 lines
513 B
Django/Jinja

[global]
HOST = http://{{ openqa_hostname|default('localhost') }}
{% if openqa_worker_class is defined %}
WORKER_CLASS = {{ openqa_worker_class }}
{% elif openqa_tap %}
{% if ansible_architecture == 'ppc64' or ansible_architecture == 'ppc64le' %}
WORKER_CLASS = {{ openqa_tap }},tpm,qemu_ppc64le,qemu_ppc64
{% elif ansible_architecture == 'aarch64' %}
WORKER_CLASS = {{ openqa_tap }},tpm,qemu_aarch64,qemu_arm
{% else %}
WORKER_CLASS = {{ openqa_tap }},tpm,qemu_x86_64,qemu_i686,qemu_i586
{% endif %}
{% endif %}