diff --git a/playbooks/roles/bifrost-create-vm-nodes/README.md b/playbooks/roles/bifrost-create-vm-nodes/README.md index 55dd7c04e..27260711f 100644 --- a/playbooks/roles/bifrost-create-vm-nodes/README.md +++ b/playbooks/roles/bifrost-create-vm-nodes/README.md @@ -24,6 +24,10 @@ test_vm_memory_size: Tunable setting to allow a user to define a specific between test runs, you may need to undefine the test virtual machine(s) that were previously created. +test_vm_num_nodes: Tunable setting to allow a user to define the number of + test VMs that will be created. They will all be created + with same settings. + Dependencies ------------ diff --git a/playbooks/roles/bifrost-create-vm-nodes/defaults/main.yml b/playbooks/roles/bifrost-create-vm-nodes/defaults/main.yml index 88891df7f..c20a283c6 100644 --- a/playbooks/roles/bifrost-create-vm-nodes/defaults/main.yml +++ b/playbooks/roles/bifrost-create-vm-nodes/defaults/main.yml @@ -2,3 +2,4 @@ # defaults file for bifrost-create-vm-nodes baremetal_csv_file: "/tmp/baremetal.csv" test_vm_memory_size: "3072" +test_vm_num_nodes: "1" diff --git a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml index c73574aa5..41c1ee435 100644 --- a/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml +++ b/playbooks/roles/bifrost-create-vm-nodes/tasks/main.yml @@ -56,6 +56,7 @@ environment: NODEOUTPUT: "{{baremetal_csv_file}}" VM_RAM: "{{ test_vm_memory_size }}" + NODECOUNT: "{{ test_vm_num_nodes }}" register: task_create_vm_nodes ignore_errors: yes delegate_to: localhost