diff options
author | Markos Chandras <mchandras@suse.de> | 2017-10-13 11:22:39 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-10-13 11:24:44 +0100 |
commit | 55f2a0a625ceb793700389aa4fafda284079d39c (patch) | |
tree | c7c0f5449433e79cefc40525088d62658e606191 /xci | |
parent | 9036d1c5fde99a57c08528293784de653efab675 (diff) |
xci: scripts: start-new-vm.sh: Make VM specs configurable
We should be able to configure the VM specs so we can fit it
in smaller environments.
Change-Id: I56850df2f6842b6ef757500fecdc21bd1382b7e7
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci')
-rwxr-xr-x | xci/scripts/vm/start-new-vm.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh index 9b5cdd8e..267d4b5a 100755 --- a/xci/scripts/vm/start-new-vm.sh +++ b/xci/scripts/vm/start-new-vm.sh @@ -99,10 +99,10 @@ update_clean_vm_files() { [[ $# -ne 1 ]] && usage && exit 1 -declare -r CPU=host -declare -r NCPUS=24 -declare -r MEMORY=49152 -declare -r DISK=500 +declare -r CPU=${XCI_CPU_TYPE:-host} +declare -r NCPUS=${XCI_NCPUS:-24} +declare -r MEMORY=${XCI_MEMORY_SIZE:-49152} +declare -r DISK=${XCI_DISK_SIZE:-500} declare -r VM_NAME=${1}_xci_vm declare -r OS=${1} declare -r NETWORK="jenkins-test" |