File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ Role Variables
86
86
- ` image ` : (optional) a URL to an image with which the volume is initalised (full copy).
87
87
- ` backing_image ` : (optional) name of the backing volume which is assumed to already be the same pool (copy-on-write).
88
88
- ` image ` and ` backing_image ` are mutually exclusive options.
89
+ - ` target ` : (optional) Manually influence type and order of volumes
89
90
90
91
- ` interfaces ` : a list of network interfaces to attach to the VM.
91
92
Each network interface is defined with the following dict:
@@ -161,6 +162,11 @@ Example Playbook
161
162
format: 'qcow2'
162
163
capacity: '400GB'
163
164
pool: 'my-pool'
165
+ - name: 'debian-10.2.0-amd64-netinst.iso'
166
+ type: 'file'
167
+ device: 'cdrom'
168
+ format: 'raw'
169
+ target: 'hda' # first device on ide bus
164
170
interfaces:
165
171
- network: 'br-datacentre'
166
172
Original file line number Diff line number Diff line change 38
38
{% else %}
39
39
<source pool =' {{ volume.pool }}' volume =' {{ volume.name }}' />
40
40
{% endif %}
41
+ {% if volume .target is undefined %}
41
42
<target dev =' vd{{ ' abcdefghijklmnopqrstuvwxyz ' [loop.index - 1] }}' />
43
+ {% else %}
44
+ <target dev ={{ volume.target }} />
45
+ {% endif %}
42
46
</disk >
43
47
{% endfor %}
44
48
{% for interface in interfaces %}
You can’t perform that action at this time.
0 commit comments