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 <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-01-03 17:14:56 -06:00
parent dded86cf84
commit 7fbc50c036
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 25 additions and 0 deletions

View File

@ -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)
----------------

View File

@ -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