
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>
23 lines
703 B
Bash
Executable File
23 lines
703 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (c) 2023 Wind River Systems, Inc.
|
|
#
|
|
|
|
source set_defaults.sh
|
|
|
|
GET_CFG="./config.py $1"
|
|
|
|
export CONFIG_FILE="$1"
|
|
export BRIDGE_INTERFACE="$( ${GET_CFG} bridge_interface )"
|
|
export EXTERNAL_NETWORK="$( ${GET_CFG} ext_network )"
|
|
export EXTERNAL_IP="$( ${GET_CFG} ext_IP )"
|
|
export CONTROLLER="$( ${GET_CFG} controller )"
|
|
export WORKER="$( ${GET_CFG} worker )"
|
|
export STORAGE="$( ${GET_CFG} storage )"
|
|
export WORKER_NODES_NUMBER="$( ${GET_CFG} worker_nodes_num )"
|
|
export STORAGE_NODES_NUMBER="$( ${GET_CFG} storage_nodes_num )"
|
|
export DOMAIN_DIRECTORY="$( ${GET_CFG} domain_dir )"
|
|
export DEFAULT_DISK_DIR="$( ${GET_CFG} default_disk )"
|