Files
tripleo-quickstart-extras/playbooks/scale_nodes.yml
Sorin Sbarnea 2a9a815857 Replace ansible include with import_playbook
Make use of import_playbook instead of deprecated and misleading
include.

Change-Id: I20c67191be4394c33184620928e31a2ee15956fa
2020-10-10 13:16:43 +00:00

29 lines
957 B
YAML

---
################
# Deploy Nodes #
################
# From tripleo-quickstart/playbooks
- import_playbook: quickstart-extras.yml
###############
# Scale Nodes #
###############
# Scale nodes w/o delete
- name: Scale overcloud nodes
hosts: undercloud
roles:
- {role: overcloud-scale, artosn_scale_nodes: true, artosn_delete_original_node: false}
# Delete the original node of type that was scaled - ensure overcloud validates after reducing scale
- name: Delete original node of type scaled
hosts: undercloud
roles:
- {role: overcloud-scale, artosn_scale_nodes: false, artosn_delete_original_node: true}
# NOTE(hrybacki: inventory regeneration and overcloud validation must be completed in a second playbook. The
# deleted node is removed from the hosts file. However, it still exists in memory and will cause the
# 'ansible-role-tripleo-inventory: regenerate ssh config' task to fail when attempting to acces non-existant host vars