Skip to content

Commit

Permalink
vms_inventory_example.yaml: add local_disk variable
Browse files Browse the repository at this point in the history
Added local_disk variable to indicate the VM disk list,
when you're on the standalone version and it's not managed by
VM manager.

Signed-off-by: Benjamin Chedotel <[email protected]>
  • Loading branch information
bchedotel committed Feb 8, 2024
1 parent 1e1d42c commit fc75fba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/inventories/vms_inventory_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ all:
ansible_host: 192.168.212.130 # Update the VM IP
vm_template: "../templates/vm/guest.xml.j2"
vm_disk: "../vm_images/guest.qcow2"
local_disk:
- disk_file: guest.qcow2
vm_features: []
preferred_host: pc1 # Optional
bridges:
Expand All @@ -21,6 +23,8 @@ all:
ansible_host: 192.168.212.131 # Update the VM IP
vm_template: "../templates/vm/guest.xml.j2"
vm_disk: "../vm_images/guest.qcow2"
local_disk:
- disk_file: guest.qcow2
cpuset: [4, 6] # CPUs list to use.
rt_priority: 1 # FIFO priority
mac_address: "52:54:00:c4:ff:03" # change the MAC address
Expand Down Expand Up @@ -56,6 +60,9 @@ all:
# templates/vm/guest.xml.j2. In most cases, you should not
# change this.
# * vm_disk: the image to use for the VM creation
# * local_disk: list of VM disks. (When using cluster, it's managed by
# vm-manager)
# ** disk_file: name of the disk
# * vm_features: the VM feature (list). Can contained one or more of the
# following items.
# ** isolated: to enable CPU pinning
Expand Down

0 comments on commit fc75fba

Please sign in to comment.