From 1c2bd6fb3f769ea96880b29b9805eaa43452ab81 Mon Sep 17 00:00:00 2001 From: Luc BEAUFILS Date: Fri, 13 Dec 2024 16:53:06 +0100 Subject: [PATCH] ssc600sw: filter disk definition in standalone mode 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 --- templates/vm/ssc600.xml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/vm/ssc600.xml.j2 b/templates/vm/ssc600.xml.j2 index 28e4a216..e515f045 100644 --- a/templates/vm/ssc600.xml.j2 +++ b/templates/vm/ssc600.xml.j2 @@ -62,6 +62,7 @@ /usr/bin/qemu-system-x86_64 + {% if 'standalone_machine' in groups and inventory_hostname in groups['standalone_machine'] %} {% if vm.disk_extract is defined and vm.disk_extract | bool %} @@ -72,6 +73,7 @@ {% endif %} + {% endif %}