Merge "Allow Test VM RAM setting to be tunable"

This commit is contained in:
Jenkins 2015-09-09 15:02:04 +00:00 committed by Gerrit Code Review
commit b9e9446681
4 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,12 @@ Role Variables
baremetal_csv_file: "/tmp/baremetal.csv"
test_vm_memory_size: Tunable setting to allow a user to define a specific
amount of RAM to allocate to guest/test VMs. Defaults
to "3072". Note: if this setting is modified between
test runs, you may need to undefine the test virtual
machine(s) that were previously created.
Dependencies
------------

View File

@ -1,3 +1,4 @@
---
# defaults file for bifrost-create-vm-nodes
baremetal_csv_file: "/tmp/baremetal.csv"
test_vm_memory_size: "3072"

View File

@ -41,6 +41,7 @@
script: create_vm_nodes-for-role.sh
environment:
NODEOUTPUT: "{{baremetal_csv_file}}"
VM_RAM: "{{ test_vm_memory_size }}"
register: task_create_vm_nodes
ignore_errors: yes
delegate_to: localhost

View File

@ -29,7 +29,8 @@ ansible-playbook -vvvv -i inventory/localhost test-bifrost-create-vm.yaml --synt
ansible-playbook -vvvv -i inventory/localhost test-bifrost-dynamic.yaml --syntax-check --list-tasks
# Create the test VM
ansible-playbook -vvvv -i inventory/localhost test-bifrost-create-vm.yaml
ansible-playbook -vvvv -i inventory/localhost test-bifrost-create-vm.yaml \
-e test_vm_memory_size="4096"
set +e