Merge "Allow Test VM RAM setting to be tunable"
This commit is contained in:
commit
b9e9446681
@ -18,6 +18,12 @@ Role Variables
|
|||||||
|
|
||||||
baremetal_csv_file: "/tmp/baremetal.csv"
|
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
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
# defaults file for bifrost-create-vm-nodes
|
# defaults file for bifrost-create-vm-nodes
|
||||||
baremetal_csv_file: "/tmp/baremetal.csv"
|
baremetal_csv_file: "/tmp/baremetal.csv"
|
||||||
|
test_vm_memory_size: "3072"
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
script: create_vm_nodes-for-role.sh
|
script: create_vm_nodes-for-role.sh
|
||||||
environment:
|
environment:
|
||||||
NODEOUTPUT: "{{baremetal_csv_file}}"
|
NODEOUTPUT: "{{baremetal_csv_file}}"
|
||||||
|
VM_RAM: "{{ test_vm_memory_size }}"
|
||||||
register: task_create_vm_nodes
|
register: task_create_vm_nodes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
@ -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
|
ansible-playbook -vvvv -i inventory/localhost test-bifrost-dynamic.yaml --syntax-check --list-tasks
|
||||||
|
|
||||||
# Create the test VM
|
# 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
|
set +e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user