summaryrefslogtreecommitdiff
path: root/roles/vm/guest/define/templates/libvirt-domain.xml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-01 00:37:26 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-01 00:37:26 +0100
commitda152505c7ef2370f6f0843543d911e974772862 (patch)
treefc34b6844cb50a9f298c9084360853b135c40527 /roles/vm/guest/define/templates/libvirt-domain.xml.j2
parentinstall cura on ch-equinox-ws (diff)
minor refactoring
Diffstat (limited to 'roles/vm/guest/define/templates/libvirt-domain.xml.j2')
-rw-r--r--roles/vm/guest/define/templates/libvirt-domain.xml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm/guest/define/templates/libvirt-domain.xml.j2 b/roles/vm/guest/define/templates/libvirt-domain.xml.j2
index 37d84d8e..e526d38d 100644
--- a/roles/vm/guest/define/templates/libvirt-domain.xml.j2
+++ b/roles/vm/guest/define/templates/libvirt-domain.xml.j2
@@ -58,7 +58,7 @@
<source dev='/dev/mapper/{{ src.vg | replace('-', '--') }}-{{ src.lv | replace('-', '--') }}'/>
{% elif src.type == 'zfs' %}
<source dev='/dev/zvol/{{ vm_host_cooked.zfs[src.backend | default('default')].pool }}/{{ vm_host_cooked.zfs[src.backend | default('default')].name }}/{{ inventory_hostname }}/{{ src.name }}'/>
-{% elif src.type == 'image' %}
+{% elif src.type == 'blockdev' %}
<source dev='{{ src.path }}'/>
{% endif %}
<target dev='{{ device }}' bus='virtio'/>
@@ -75,7 +75,7 @@
<source dev='/dev/mapper/{{ src.vg | replace('-', '--') }}-{{ src.lv | replace('-', '--') }}'/>
{% elif src.type == 'zfs' %}
<source dev='/dev/zvol/{{ vm_host_cooked.zfs[src.backend | default('default')].pool }}/{{ vm_host_cooked.zfs[src.backend | default('default')].name }}/{{ inventory_hostname }}/{{ src.name }}'/>
-{% elif src.type == 'image' %}
+{% elif src.type == 'blockdev' %}
<source dev='{{ src.path }}'/>
{% endif %}
<target dev='{{ device }}' bus='scsi'/>