
Add the ability for the user to change how many cores and memory are allocated per node. Each node may have any number of cores or memory set, with which their values are used by sourcing the file: 'source readconfig.sh <yaml file>' Test plan: PASS: regression tests passed PASS: sanity tests passed PASS: no tox, flake8 or pylint errors PASS: value succesfully set from config file PASS: defaults used when no config file is sourced Story: 2010816 Task: 48398 Task: 48586 Change-Id: Ia2f7df44c872fac41ac6376ef3fb00062624ac22 Signed-off-by: Bailey Henry <Henry.Bailey@windriver.com>
28 lines
916 B
Bash
Executable File
28 lines
916 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 )"
|
|
export DEFAULT_CPU="$( ${GET_CFG} default_cpu )"
|
|
export DEFAULT_MEM="$( ${GET_CFG} default_mem )"
|
|
export AIO_DEFAULT_CPU="$( ${GET_CFG} aio_default_cpu )"
|
|
export AIO_DEFAULT_MEM="$( ${GET_CFG} aio_default_mem )"
|
|
|