Adds workflow to list deployment plans
Create a workflow to supplant the need for a direct action call to list the available plans. Change-Id: I5eed964a31d95c46472a792b61e41fad126d7819 Partial-Bug: #1640436
This commit is contained in:
parent
597608db7b
commit
1f58a968f4
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds a workflow to list deployment plans so the tripleo.plan.list action
|
||||
does not need to be called directly.
|
@ -1405,3 +1405,45 @@ workflows:
|
||||
selected_roles: <% $.get('selected_roles', []) %>
|
||||
on-success:
|
||||
- fail: <% $.get('status') = "FAILED" %>
|
||||
|
||||
list_plans:
|
||||
description: >
|
||||
This workflow lists all deployment plans residing in the undercloud. A
|
||||
deployment plan consists of a container marked with metadata
|
||||
'x-container-meta-usage-tripleo'.
|
||||
|
||||
tags:
|
||||
- tripleo-common-managed
|
||||
|
||||
input:
|
||||
- queue_name: tripleo
|
||||
|
||||
output:
|
||||
plan_list: <% $.plans %>
|
||||
|
||||
tasks:
|
||||
list_plans:
|
||||
action: tripleo.plan.list
|
||||
on-complete: notify_zaqar
|
||||
publish:
|
||||
status: SUCCESS
|
||||
message: <% task().result %>
|
||||
plans: <% task().result %>
|
||||
publish-on-error:
|
||||
status: FAILED
|
||||
message: <% task().result %>
|
||||
|
||||
notify_zaqar:
|
||||
action: zaqar.queue_post
|
||||
input:
|
||||
queue_name: <% $.queue_name %>
|
||||
messages:
|
||||
body:
|
||||
type: tripleo.plan_management.v1.list_plans
|
||||
payload:
|
||||
status: <% $.status %>
|
||||
message: <% $.get('message', '') %>
|
||||
execution: <% execution() %>
|
||||
plans: <% $.get('plans', []) %>
|
||||
on-success:
|
||||
- fail: <% $.get('status') = "FAILED" %>
|
||||
|
Loading…
Reference in New Issue
Block a user