Skip to content

Commit

Permalink
ssc600sw: filter disk definition in standalone mode
Browse files Browse the repository at this point in the history
The disk definition should appear only in standalone mode.
In cluster mode, the disk should not be defined in the libvirt xml.

Signed-off-by: Luc BEAUFILS <[email protected]>
  • Loading branch information
lucbeaufils committed Dec 16, 2024
1 parent 2dbd658 commit 1c2bd6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/vm/ssc600.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
{% if 'standalone_machine' in groups and inventory_hostname in groups['standalone_machine'] %}
<disk type="file" device="disk">
{% if vm.disk_extract is defined and vm.disk_extract | bool %}
<driver name="qemu" type="raw" cache='none' io='threads'/>
Expand All @@ -72,6 +73,7 @@
{% endif %}
<target dev="vda" bus="virtio"/>
</disk>
{% endif %}
<controller type="usb" index="0" model="none"/>
<controller type="pci" index="0" model="pcie-root"/>
<controller type="virtio-serial" index="0"/>
Expand Down

0 comments on commit 1c2bd6f

Please sign in to comment.