copr-hypervisors: upload images to p08 and p09 hypervisors
This commit is contained in:
parent
d1f986e26f
commit
f1b1dac68f
1 changed files with 7 additions and 2 deletions
|
@ -6,11 +6,16 @@ image=$1
|
||||||
|
|
||||||
libvirt_connections='
|
libvirt_connections='
|
||||||
{% for host in groups["copr_hypervisor"] %}
|
{% for host in groups["copr_hypervisor"] %}
|
||||||
{% for arch in ["p08", "x86"] %}
|
{% for arch in ["p08", "p09", "x86"] %}
|
||||||
{% if arch in inventory_hostname and arch in hostvars[host]['inventory_hostname'] %}
|
{% if arch in inventory_hostname %}
|
||||||
|
{% set acceptable = ["p08", "p09"] if arch in ["p08", "p09"] else [arch] %}
|
||||||
|
{% for check in acceptable %}
|
||||||
|
{% if check in hostvars[host]['inventory_hostname'] %}
|
||||||
qemu+ssh://copr@{{ hostvars[host]['inventory_hostname'] }}/system
|
qemu+ssh://copr@{{ hostvars[host]['inventory_hostname'] }}/system
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
'
|
'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue