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: Ia014d85d7e601d436ae9267df5988f4a6e962574
This commit is contained in:
Dougal Matthews 2016-09-12 11:24:30 +00:00
parent 1b09e77383
commit af27127508
1 changed files with 15 additions and 4 deletions

View File

@ -24,7 +24,7 @@ workflows:
on-success: notify_zaqar
publish:
status: SUCCESS
message: <% task(process_templates).result %>
message: <% task(create_plan).result %>
create_plan_set_status_failed:
on-success: notify_zaqar
@ -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:
@ -124,7 +135,7 @@ workflows:
plan_process_templates:
action: tripleo.process_templates container=<% $.container %>
on-success: plan_set_status_success
on-error: plan_set_status_failed
on-error: process_templates_set_status_failed
plan_set_status_success:
on-success: notify_zaqar