Add template processing to the update plan workflow.

This was recently added to the create workflow, but as update
was added at the same time it wasn't included.

Partial-Bug: #1622683
Closes-Bug: #1622720
Change-Id: I96ff13a00ac98bdfeb6605e9d300f8a44e6f82f1
This commit is contained in:
Dougal Matthews 2016-09-16 09:15:43 +01:00
parent 489455ae7e
commit 2d87e96404
1 changed files with 13 additions and 2 deletions

View File

@ -57,8 +57,13 @@ workflows:
tasks:
update_plan:
action: tripleo.plan.update container=<% $.container %>
on-success: process_templates
on-error: update_plan_set_status_failed
process_templates:
action: tripleo.process_templates container=<% $.container %>
on-success: set_status_success
on-error: set_status_failed
on-error: process_templates_set_status_failed
set_status_success:
on-success: notify_zaqar
@ -66,12 +71,18 @@ workflows:
status: SUCCESS
message: <% task(update_plan).result %>
set_status_failed:
update_plan_set_status_failed:
on-success: notify_zaqar
publish:
status: FAILED
message: <% task(update_plan).result %>
process_templates_set_status_failed:
on-success: notify_zaqar
publish:
status: FAILED
message: <% task(process_templates).result %>
notify_zaqar:
action: zaqar.queue_post
input: