Merge "Update the dynamic test playbook"
This commit is contained in:
commit
d1cf8f1026
@ -1,4 +1,9 @@
|
|||||||
# Example command line to use:
|
# 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
|
# ansible-playbook -vvvv -i inventory/bifrost_inventory.py test-bifrost-dynamic.yaml -e use_cirros=true -e testing_user=cirros
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
@ -7,10 +12,6 @@
|
|||||||
sudo: yes
|
sudo: yes
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
pre_tasks:
|
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"
|
- name: "Set ci_testing flag if a list of changes are found in the environment variables"
|
||||||
set_fact:
|
set_fact:
|
||||||
ci_testing: true
|
ci_testing: true
|
||||||
@ -29,7 +30,6 @@
|
|||||||
shell: netstat -apn|grep LISTEN
|
shell: netstat -apn|grep LISTEN
|
||||||
when: ci_testing_zuul is defined
|
when: ci_testing_zuul is defined
|
||||||
roles:
|
roles:
|
||||||
- role: bifrost-create-vm-nodes
|
|
||||||
- role: ironic-install
|
- role: ironic-install
|
||||||
cleaning: false
|
cleaning: false
|
||||||
testing: true
|
testing: true
|
||||||
@ -63,10 +63,4 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
roles:
|
roles:
|
||||||
- role: bifrost-unprovision-node-dynamic
|
- role: bifrost-unprovision-node-dynamic
|
||||||
- hosts: localhost
|
- role: ironic-delete-dynamic
|
||||||
connection: local
|
|
||||||
name: "Unprovisions the test node"
|
|
||||||
sudo: no
|
|
||||||
gather_facts: no
|
|
||||||
roles:
|
|
||||||
- role: ironic-delete
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user