@@ -12,6 +12,13 @@ be preconfigured with libvirt/KVM.
12
12
Role Variables
13
13
--------------
14
14
15
+ - ` libvirt_vm_default_console_log_dir ` : The default directory in which to store
16
+ VM console logs, if a VM-specific log file path is not given. Default is
17
+ "/var/log/libvirt/qemu/".
18
+
19
+ - ` libvirt_image_cache_path ` : The directory in which to cache downloaded
20
+ images. Default is "/tmp/".
21
+
15
22
- ` libvirt_vm_engine ` : virtualisation engine. If not set, the role will attempt
16
23
to auto-detect the optimal engine to use.
17
24
@@ -33,10 +40,10 @@ Role Variables
33
40
- ` vcpus ` : the number of VCPU cores to assign to the VM.
34
41
35
42
- ` machine ` : Virtual machine type. Default is ` None ` if
36
- ` engine ` is ` kvm ` , otherwise ` pc-1.0 ` .
43
+ ` libvirt_vm_engine ` is ` kvm ` , otherwise ` pc-1.0 ` .
37
44
38
- - ` cpu_mode ` : Virtual machine CPU mode. Default is
39
- ` host-passthrough ` if ` engine ` is ` kvm ` , otherwise ` host-model ` .
45
+ - ` cpu_mode ` : Virtual machine CPU mode. Default is ` host-passthrough ` if
46
+ ` libvirt_vm_engine ` is ` kvm ` , otherwise ` host-model ` .
40
47
41
48
- ` volumes ` : a list of volumes to attach to the VM. Each volume is
42
49
defined with the following dict:
@@ -54,9 +61,7 @@ Role Variables
54
61
- ` network ` : Name of the network to which an interface should be attached.
55
62
56
63
- ` console_log_path ` : Path to console log file. Default is
57
- ` /var/log/libvirt/qemu/{{ libvirt_vm_name }}-console.log ` .
58
-
59
- - ` image_cache_path ` : path to cache downloaded images.
64
+ ` {{ libvirt_vm_default_console_log_dir }}/{{ name }}-console.log ` .
60
65
61
66
62
67
N.B. the following variables are deprecated: ` libvirt_vm_state ` ,
0 commit comments