File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 44# file path is not given.
55libvirt_vm_default_console_log_dir : " /var/log/libvirt-consoles/"
66
7+ # The default format for Libvirt volumes.
8+ libvirt_volume_default_format : qcow2
9+
10+ # The default device for Libvirt volumes.
11+ libvirt_volume_default_device : disk
12+
713# Path to cache downloaded images.
814libvirt_image_cache_path : " /tmp/"
915
Original file line number Diff line number Diff line change 1919 {{ item.name }}
2020 {{ item.pool }}
2121 {{ item.capacity }}
22- {{ item.format | default('qcow2' ) }}
22+ {{ item.format | default(libvirt_volume_default_format ) }}
2323 {% if item.image is defined %}
2424 {{ libvirt_vm_image_cache_path }}/{{ item.image | basename }}
2525 {% endif %}
Original file line number Diff line number Diff line change 1919 <devices >
2020 <emulator >{{ libvirt_vm_emulator }}</emulator >
2121{% for volume in volumes %}
22- <disk type =' volume' device =' {{ volume.device | default(' disk ' ) }}' >
23- <driver name =' qemu' type =' {{ volume.format }}' />
22+ <disk type =' volume' device =' {{ volume.device | default(libvirt_volume_default_device ) }}' >
23+ <driver name =' qemu' type =' {{ volume.format | default(libvirt_volume_default_format) }}' />
2424 <source pool =' {{ volume.pool }}' volume =' {{ volume.name }}' />
2525 <target dev =' vd{{ ' abcdefghijklmnopqrstuvwxyz ' [loop.index] }}' />
2626 </disk >
You can’t perform that action at this time.
0 commit comments