Merge "[Train] Check for existence of stack" into stable/train

This commit is contained in:
Zuul 2020-09-22 18:36:26 +00:00 committed by Gerrit Code Review
commit 9853fa3d9c
1 changed files with 12 additions and 1 deletions

View File

@ -31,10 +31,21 @@ workflows:
tasks:
get_pubkey:
action: tripleo.validations.get_pubkey
on-success: get_blacklisted_ip_addresses
on-success:
- stack_exists: <% $.ssh_private_key != null %>
- get_blacklisted_ip_addresses: <% $.ssh_private_key = null %>
publish:
pubkey: <% task().result %>
stack_exists:
action: heat.stacks_get
input:
stack_id: <% $.plan_name %>
on-success: get_blacklisted_ip_addresses
on-error: create_admin_via_ssh
publish-on-error:
ssh_servers_not_blacklisted: <% $.ssh_servers %>
get_blacklisted_ip_addresses:
action: heat.stacks_output_show
input: