7f9700209c
Changed the name of the ironic-deploy role to bifrost-validate-host-for-deploy to be in-line with what the role actually does which is perform basic node validation before the process proceeds.
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
- hosts: localhost
|
|
connection: local
|
|
name: "Executes install, enrollment, and testing in one playbook"
|
|
sudo: yes
|
|
gather_facts: yes
|
|
pre_tasks:
|
|
- set_fact: baremetal_csv_file="/tmp/baremetal.csv"
|
|
when: baremetal_csv_file is not defined
|
|
roles:
|
|
- role: bifrost-create-vm-nodes
|
|
- role: ironic-install
|
|
cleaning: false
|
|
testing: true
|
|
- role: ironic-enroll
|
|
testing: true
|
|
- role: bifrost-validate-host-for-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
|