7d68f2152e
Playbook changes should match: https://review.openstack.org/#/c/397700/ The env setup has been split into a separate playbook so that the baremetal and OVB playbooks can be unified. Related-To: https://review.openstack.org/400997 Change-Id: I65f380729cc2bcba6b1437cc678e7c12f24be001
91 lines
2.0 KiB
YAML
91 lines
2.0 KiB
YAML
---
|
|
- name: Validate IPMI and instackenv.json
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
roles:
|
|
- validate-ipmi
|
|
|
|
- name: Install the undercloud
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- tripleo/undercloud
|
|
|
|
- name: copy over config files
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- overcloud-prep-config
|
|
|
|
- name: Perpare the baremetal overcloud
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
roles:
|
|
- baremetal-prep-overcloud
|
|
|
|
- name: Prepare the overcloud images for deployment
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- overcloud-prep-images
|
|
|
|
- name: Prepare overcloud flavors
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- overcloud-prep-flavors
|
|
|
|
- name: Prepare the undercloud networks for the overcloud deployment
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- overcloud-prep-network
|
|
|
|
- name: Deploy the overcloud
|
|
hosts: undercloud
|
|
gather_facts: no
|
|
roles:
|
|
- overcloud-deploy
|
|
|
|
# Add the overcloud nodes to the generated inventory.
|
|
- name: Inventory the overcloud
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
tags:
|
|
- overcloud-deploy
|
|
vars:
|
|
inventory: all
|
|
roles:
|
|
- tripleo-inventory
|
|
|
|
- name: Check the result of the deployment
|
|
hosts: localhost
|
|
tags:
|
|
- overcloud-deploy
|
|
tasks:
|
|
- name: ensure the deployment result has been read into memory
|
|
include_vars: "{{ local_working_dir }}/overcloud_deployment_result.json"
|
|
|
|
# overcloud_deploy_result = ["failed", "passed"]
|
|
- name: did the deployment pass or fail?
|
|
debug: var=overcloud_deploy_result
|
|
failed_when: overcloud_deploy_result == "failed"
|
|
|
|
# Validate the deployment
|
|
- name: validate the overcloud
|
|
hosts: undercloud
|
|
tags:
|
|
- overcloud-validate
|
|
gather_facts: no
|
|
roles:
|
|
- { role: validate-simple, when: test_ping|bool }
|
|
|
|
# Execute tempest against the overcloud deployment
|
|
- name: Execute tempest against the overcloud
|
|
hosts: undercloud
|
|
tags:
|
|
- overcloud-validate
|
|
gather_facts: no
|
|
roles:
|
|
- { role: validate-tempest, when: run_tempest|bool }
|