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 4
4
# file path is not given.
5
5
libvirt_vm_default_console_log_dir : " /var/log/libvirt-consoles/"
6
6
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
+
7
13
# Path to cache downloaded images.
8
14
libvirt_image_cache_path : " /tmp/"
9
15
Original file line number Diff line number Diff line change 19
19
{{ item.name }}
20
20
{{ item.pool }}
21
21
{{ item.capacity }}
22
- {{ item.format | default('qcow2' ) }}
22
+ {{ item.format | default(libvirt_volume_default_format ) }}
23
23
{% if item.image is defined %}
24
24
{{ libvirt_vm_image_cache_path }}/{{ item.image | basename }}
25
25
{% endif %}
Original file line number Diff line number Diff line change 19
19
<devices >
20
20
<emulator >{{ libvirt_vm_emulator }}</emulator >
21
21
{% 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) }}' />
24
24
<source pool =' {{ volume.pool }}' volume =' {{ volume.name }}' />
25
25
<target dev =' vd{{ ' abcdefghijklmnopqrstuvwxyz ' [loop.index] }}' />
26
26
</disk >
You can’t perform that action at this time.
0 commit comments