From 6803614b924aff6f55ec45f9b3b636544782eb1e Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Fri, 19 Jun 2015 15:11:58 -0400 Subject: [PATCH] Update the dynamic test playbook Updating the dynamic test playbook to remove VM creation and shift the remaining roles over to utilizing the dynamic roles which eliminates the baremetal.csv file's utilization beyond initial VM creation as a simple and easy means to get started. Change-Id: I19b58139d7918491f73dc1fa5a3258a537b069a0 --- playbooks/test-bifrost-dynamic.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/playbooks/test-bifrost-dynamic.yaml b/playbooks/test-bifrost-dynamic.yaml index 073ffbbd5..67b9ee726 100644 --- a/playbooks/test-bifrost-dynamic.yaml +++ b/playbooks/test-bifrost-dynamic.yaml @@ -1,4 +1,9 @@ # Example command line to use: +# Create a VM: +# ansible-playbook -vvvv -i inventory/localhost test-bifrost-create-vm.yaml +# Set BIFROST_INVENTORY_SOURCE +# export BIFROST_INVENTORY_SOURCE=/tmp/baremetal.csv +# Execute the installation and VM startup test. # ansible-playbook -vvvv -i inventory/bifrost_inventory.py test-bifrost-dynamic.yaml -e use_cirros=true -e testing_user=cirros --- - hosts: localhost @@ -7,10 +12,6 @@ sudo: yes gather_facts: yes pre_tasks: - - name: "Set default baremetal.csv file if not already defined" - set_fact: - baremetal_csv_file: "/tmp/baremetal.csv" - when: baremetal_csv_file is not defined - name: "Set ci_testing flag if a list of changes are found in the environment variables" set_fact: ci_testing: true @@ -29,7 +30,6 @@ shell: netstat -apn|grep LISTEN when: ci_testing_zuul is defined roles: - - role: bifrost-create-vm-nodes - role: ironic-install cleaning: false testing: true @@ -63,10 +63,4 @@ gather_facts: no roles: - role: bifrost-unprovision-node-dynamic -- hosts: localhost - connection: local - name: "Unprovisions the test node" - sudo: no - gather_facts: no - roles: - - role: ironic-delete + - role: ironic-delete-dynamic