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
8686 - ` image ` : (optional) a URL to an image with which the volume is initalised (full copy).
8787 - ` backing_image ` : (optional) name of the backing volume which is assumed to already be the same pool (copy-on-write).
8888 - ` image ` and ` backing_image ` are mutually exclusive options.
89+ - ` target ` : (optional) Manually influence type and order of volumes
8990
9091 - ` interfaces ` : a list of network interfaces to attach to the VM.
9192 Each network interface is defined with the following dict:
@@ -161,6 +162,11 @@ Example Playbook
161162 format: 'qcow2'
162163 capacity: '400GB'
163164 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
164170 interfaces:
165171 - network: 'br-datacentre'
166172
Original file line number Diff line number Diff line change 3838 {% else %}
3939 <source pool =' {{ volume.pool }}' volume =' {{ volume.name }}' />
4040 {% endif %}
41+ {% if volume .target is undefined %}
4142 <target dev =' vd{{ ' abcdefghijklmnopqrstuvwxyz ' [loop.index - 1] }}' />
43+ {% else %}
44+ <target dev ={{ volume.target }} />
45+ {% endif %}
4246 </disk >
4347{% endfor %}
4448{% for interface in interfaces %}
You can’t perform that action at this time.
0 commit comments