Bailey Henry 02f67a5746 libvirt: Add override variable for DISK variables
Add an override variable for the DISK file location for each node in a
virtual lab. Introduced the ability to set disk file location for all
nodes in a config file. (was hardcoded to /var/lib/libvirt/images)

This enhancement enables better utilization of the host's disk
resources, allowing for more complex deployments such as
'Distributed Cloud'.

Test plan:
PASS: pylint, flake8, bashate
PASS: Regression for default and madcloud examples
PASS: Able to change what is storage and how many are applied
PASS: Copy default.yaml and modify values of disk directories for nodes
      and compare to default.yaml

Story: 2010816
Task: 48397

Change-Id: If19404ed151739c4abcbd5f2c3b9fb62132ed6fe
Signed-off-by: Bailey Henry <Henry.Bailey@windriver.com>
2023-08-09 12:04:03 -04:00

21 lines
474 B
YAML
Executable File

---
bridge_interface: stxbr
ext_network: 10.10.10.0/24
ext_IP: 10.10.10.1/24
controller: controller
worker: worker
storage: storage
worker_nodes_num: 1
storage_nodes_num: 1
domain_dir: 'vms'
default_disk: /var/lib/libvirt/images
controllerlist:
- disk: /var/lib/libvirt/images
- disk: /var/lib/libvirt/images
workerlist:
- disk: /var/lib/libvirt/images
- disk: /var/lib/libvirt/images
storagelist:
- disk: /var/lib/libvirt/images
- disk: /var/lib/libvirt/images