Merge "Added scale_tasks to handle cleanup on scale down of nodes"

This commit is contained in:
Zuul 2020-04-09 15:11:12 +00:00 committed by Gerrit Code Review
commit 20fb1b3588
1 changed files with 14 additions and 2 deletions

View File

@ -132,3 +132,15 @@ outputs:
when: when:
- idm_enroll_base_server|bool - idm_enroll_base_server|bool
- not ipa_conf_exists.stat.exists - not ipa_conf_exists.stat.exists
scale_tasks:
- when: step|int == 1
tags: down
block:
- name: unregister node from ipa server
import_role:
name: tripleo_ipa_cleanup
delegate_to: localhost
vars:
tripleo_ipa_keytab: {get_param: IdMNovaKeytab}
tripleo_ipa_hosts_to_delete:
- "{{ fqdn_canonical }}"