Merge "Remove Luna HSM clients on scaledown" into stable/train

This commit is contained in:
Zuul 2021-01-05 21:31:29 +00:00 committed by Gerrit Code Review
commit 34df1cce78
1 changed files with 19 additions and 0 deletions

View File

@ -783,5 +783,24 @@ outputs:
name: virt_sandbox_use_netlink
persistent: yes
state: yes
scale_tasks:
if:
- lunasa_hsm_enabled
-
- name: Remove HSM clients
when: step|int == 1
tags: down
block:
- name: Remove client from HSM
import_role:
name: lunasa_hsm
tasks_from: unregister_client
delegate_to: undercloud
vars:
- map_merge:
- {get_param: LunasaVars}
- lunasa_client_pin: {get_param: BarbicanPkcs11CryptoLogin}
- client_name: "{{ fqdn_canonical }}"
- null
metadata_settings:
get_attr: [ApacheServiceBase, role_data, metadata_settings]