diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-01-01 00:37:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-01-01 00:37:26 +0100 |
commit | da152505c7ef2370f6f0843543d911e974772862 (patch) | |
tree | fc34b6844cb50a9f298c9084360853b135c40527 /roles/vm/guest/define/templates/libvirt-domain.xml.j2 | |
parent | install 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.j2 | 4 |
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'/> |