c0227d29b4
Add a cleanup_state.yml playbook that is run after every deployment and teardown. It will remove any nodes marked as 'absent' from the state file, by calling schedule.py with `prune_only=True`.
31 lines
683 B
YAML
31 lines
683 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Set command for deployment
|
|
set_fact:
|
|
cmd: deploy
|
|
|
|
- name: Schedule nodes
|
|
import_playbook: schedule.yml
|
|
|
|
- name: Perform deployment host configuration
|
|
import_playbook: host_setup.yml
|
|
|
|
- name: Configure node networking
|
|
import_playbook: node_networking.yml
|
|
|
|
- name: Configure node instantiation
|
|
import_playbook: node_instantiation.yml
|
|
|
|
- name: Set up virtual node BMCs
|
|
import_playbook: node_bmc.yml
|
|
|
|
- name: Perform Ironic node configuration
|
|
import_playbook: node_enrolment.yml
|
|
|
|
- name: Register flavors in Nova
|
|
import_playbook: flavor_registration.yml
|
|
|
|
- name: Clean up Tenks state
|
|
import_playbook: cleanup_state.yml
|