bifrost/test-bifrost.yaml
Julia Kreger 79d03f67cd Adding ironic-delete to test-bifrost sequence
Added ironic-delete step into the test-bifrost.yaml playbook sequence
and updated documentation to indicate that the node was being removed
from active use and then deleted from ironic.

Additionally noted in the README that cleaning is disabled for the
bifrost-test playbook.
2015-03-26 09:40:28 -04:00

62 lines
1.6 KiB
YAML

---
- hosts: localhost
connection: local
name: "Executes install, enrollment, and testing in one playbook"
sudo: yes
gather_facts: no
tasks:
- name: "Install testing packages"
apt: name={{ item }}
when: testing is defined and testing == true
with_items:
- libvirt-bin
- qemu-utils
- qemu-kvm
- sgabios
- hosts: localhost
connection: local
name: "Executes install, enrollment, and testing in one playbook"
sudo: yes
gather_facts: yes
pre_tasks:
- name: "Creating Baremetal CSV File"
shell: ./create_vm_nodes.sh |grep -v "CSV entries">/tmp/baremetal.csv
- set_fact: baremetal_csv_file="/tmp/baremetal.csv"
roles:
- role: ironic-install
cleaning: false
- role: ironic-enroll
- role: ironic-deploy
- hosts: localhost
connection: local
name: "Executes install, enrollment, and testing in one playbook"
sudo: no
gather_facts: yes
roles:
- role: bifrost-configdrives
- role: bifrost-setup-nodes
- role: bifrost-prepare-for-test
# The testvm Host group is added by bifrost-prepare-for-test based
# on the contents of the CSV file.
- hosts: testvm
name: "Tests connectivity to the VM"
sudo: no
gather_facts: yes
remote_user: ubuntu
roles:
- role: bifrost-test-vm
- hosts: localhost
connection: local
name: "Unprovisions the test node"
sudo: no
gather_facts: no
roles:
- role: bifrost-unprovision-nodes
- hosts: localhost
connection: local
name: "Unprovisions the test node"
sudo: no
gather_facts: no
roles:
- role: ironic-delete