From 7fbc50c036569256e08c22a138907e35cb66fbf3 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Wed, 3 Jan 2018 17:14:56 -0600 Subject: [PATCH] Add env vars to set the RAM for VMS in the mnaio The MNAIO serves as a good way to play with a production like OSA environment on minimal hardware. While this is a good way to test it does leave some options hard to address and change when trying to build in an automated way. This change makes it possible for a deployer to set an environmental variable to change the ram allocation of all default vm types which should help folks build a more capable and customizable test cloud. Change-Id: Idc2cff091701ecda80165a98fffa1db222600d27 Signed-off-by: Kevin Carter --- multi-node-aio/README.rst | 19 +++++++++++++++++++ multi-node-aio/build.sh | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/multi-node-aio/README.rst b/multi-node-aio/README.rst index 93155fd7..485669d6 100644 --- a/multi-node-aio/README.rst +++ b/multi-node-aio/README.rst @@ -152,6 +152,25 @@ Insrtuct the system to use a different Ubuntu mirror: Instruct the system to use a different Ubuntu mirror base directory: ``DEFAULT_MIRROR_DIR=${DEFAULT_MIRROR_DIR:-/ubuntu}`` +Instruct the system to use a set amount of ram for cinder VM type: + ``CINDER_VM_SERVER_RAM=${CINDER_VM_SERVER_RAM:-2048}`` + +Instruct the system to use a set amount of ram for compute VM type: + ``COMPUTE_VM_SERVER_RAM=${COMPUTE_VM_SERVER_RAM:-8196}`` + +Instruct the system to use a set amount of ram for infra VM type: + ``INFRA_VM_SERVER_RAM=${INFRA_VM_SERVER_RAM:-8196}`` + +Instruct the system to use a set amount of ram for load balancer VM type: + ``LOADBALANCER_VM_SERVER_RAM=${LOADBALANCER_VM_SERVER_RAM:-1024}`` + +Instruct the system to use a set amount of ram for the logging VM type: + ``LOGGING_VM_SERVER_RAM=${LOGGING_VM_SERVER_RAM:-1024}`` + +Instruct the system to use a set amount of ram for the swift VM type: + ``SWIFT_VM_SERVER_RAM=${SWIFT_VM_SERVER_RAM:-1024}`` + + Re-kicking VM(s) ---------------- diff --git a/multi-node-aio/build.sh b/multi-node-aio/build.sh index af0ada3c..0ac8e61d 100755 --- a/multi-node-aio/build.sh +++ b/multi-node-aio/build.sh @@ -43,5 +43,11 @@ ansible-playbook -vv \ -e default_ubuntu_kernel=${DEFAULT_KERNEL:-"linux-image-generic"} \ -e default_ubuntu_mirror_hostname=${DEFAULT_MIRROR_HOSTNAME:-"archive.ubuntu.com"} \ -e default_ubuntu_mirror_directory=${DEFAULT_MIRROR_DIR:-"/ubuntu"} \ + -e cinder_vm_server_ram=${CINDER_VM_SERVER_RAM-"2048"} \ + -e compute_vm_server_ram=${COMPUTE_VM_SERVER_RAM-"8196"} \ + -e infra_vm_server_ram=${INFRA_VM_SERVER_RAM-"8196"} \ + -e loadbalancer_vm_server_ram=${LOADBALANCER_VM_SERVER_RAM-"1024"} \ + -e logging_vm_server_ram=${LOGGING_VM_SERVER_RAM-"1024"} \ + -e swift_vm_server_ram=${SWIFT_VM_SERVER_RAM-"1024"} \ --force-handlers \ playbooks/site.yml