From 6ccf0cee70808e7aa8ff9a7226d97d4fe1c1259f Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 26 Jul 2017 12:01:33 +0100 Subject: prototypes: xci: config: Allow users to set VM specs The default VM spec may not be good enough for every host so allow users to override the default VM_* variables. Change-Id: Ie846620ab81b7fedcbe4b23da735379ab75d3cc2 Signed-off-by: Markos Chandras --- xci/config/aio-vars | 8 ++++---- xci/config/ha-vars | 8 ++++---- xci/config/mini-vars | 8 ++++---- xci/config/noha-vars | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) (limited to 'xci/config') diff --git a/xci/config/aio-vars b/xci/config/aio-vars index f28ecff1..ed921f42 100755 --- a/xci/config/aio-vars +++ b/xci/config/aio-vars @@ -11,8 +11,8 @@ #------------------------------------------------------------------------------- export TEST_VM_NUM_NODES=1 export TEST_VM_NODE_NAMES=opnfv -export VM_DOMAIN_TYPE=kvm -export VM_CPU=8 -export VM_DISK=80 -export VM_MEMORY_SIZE=8192 +export VM_DOMAIN_TYPE=${VM_DOMAIN_TYPE:-kvm} +export VM_CPU=${VM_CPU:-8} +export VM_DISK=${VM_DISK:-80} +export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-8192} export VM_DISK_CACHE=unsafe diff --git a/xci/config/ha-vars b/xci/config/ha-vars index 1ba45890..b864c42e 100755 --- a/xci/config/ha-vars +++ b/xci/config/ha-vars @@ -11,8 +11,8 @@ #------------------------------------------------------------------------------- export TEST_VM_NUM_NODES=6 export TEST_VM_NODE_NAMES="opnfv controller00 controller01 controller02 compute00 compute01" -export VM_DOMAIN_TYPE=kvm -export VM_CPU=8 -export VM_DISK=80 -export VM_MEMORY_SIZE=16384 +export VM_DOMAIN_TYPE=${VM_DOMAIN_TYPE:-kvm} +export VM_CPU=${VM_CPU:-8} +export VM_DISK=${VM_CPU:-80} +export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-16384} export VM_DISK_CACHE=unsafe diff --git a/xci/config/mini-vars b/xci/config/mini-vars index 8f1e83cd..fd32e7f3 100755 --- a/xci/config/mini-vars +++ b/xci/config/mini-vars @@ -11,8 +11,8 @@ #------------------------------------------------------------------------------- export TEST_VM_NUM_NODES=3 export TEST_VM_NODE_NAMES="opnfv controller00 compute00" -export VM_DOMAIN_TYPE=kvm -export VM_CPU=8 -export VM_DISK=80 -export VM_MEMORY_SIZE=12288 +export VM_DOMAIN_TYPE=${VM_DOMAIN_TYPE:-kvm} +export VM_CPU=${VM_CPU:-8} +export VM_DISK=${VM_DISK:-80} +export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-12288} export VM_DISK_CACHE=unsafe diff --git a/xci/config/noha-vars b/xci/config/noha-vars index 935becb2..6d85111c 100755 --- a/xci/config/noha-vars +++ b/xci/config/noha-vars @@ -11,8 +11,8 @@ #------------------------------------------------------------------------------- export TEST_VM_NUM_NODES=4 export TEST_VM_NODE_NAMES="opnfv controller00 compute00 compute01" -export VM_DOMAIN_TYPE=kvm -export VM_CPU=8 -export VM_DISK=80 -export VM_MEMORY_SIZE=12288 +export VM_DOMAIN_TYPE=${VM_DOMAIN_TYPE:-kvm} +export VM_CPU=${VM_CPU:-8} +export VM_DISK=${VM_DISK:-80} +export VM_MEMORY_SIZE=${VM_MEMORY_SIZE:-12288} export VM_DISK_CACHE=unsafe -- cgit 1.2.3-korg