Adds Create Container Workflow
This patch adds a workflow to update the parameters in a given deployment plan so the tripleo.plan.create_container action does not need to be called directly. Change-Id: I7144b927b02f162433acc9481a43950d2c77cd9b Closes-Bug: #1759308
This commit is contained in:
parent
658524601b
commit
2d0116d79b
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Adds a workflow to create a container so the underlying action does
|
||||||
|
not need to be called directly.
|
@ -5,6 +5,43 @@ description: TripleO Overcloud Deployment Workflows v1
|
|||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
|
|
||||||
|
create_container:
|
||||||
|
description: >
|
||||||
|
Creates an object container for a given name. If a container with the
|
||||||
|
same name already exists an error is returned.
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- tripleo-common-managed
|
||||||
|
|
||||||
|
input:
|
||||||
|
- container: overcloud
|
||||||
|
- queue_name: tripleo
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
create_container:
|
||||||
|
action: tripleo.plan.create_container container=<% $.container %>
|
||||||
|
on-complete: notify_zaqar
|
||||||
|
publish-on-error:
|
||||||
|
status: FAILED
|
||||||
|
message: <% task().result %>
|
||||||
|
publish:
|
||||||
|
status: SUCCESS
|
||||||
|
message: <% task().result %>
|
||||||
|
|
||||||
|
notify_zaqar:
|
||||||
|
action: zaqar.queue_post
|
||||||
|
input:
|
||||||
|
queue_name: <% $.queue_name %>
|
||||||
|
messages:
|
||||||
|
body:
|
||||||
|
type: tripleo.plan_management.v1.create_container
|
||||||
|
payload:
|
||||||
|
status: <% $.status %>
|
||||||
|
message: <% $.get('message', '') %>
|
||||||
|
execution: <% execution() %>
|
||||||
|
on-success:
|
||||||
|
- fail: <% $.get('status') = "FAILED" %>
|
||||||
|
|
||||||
create_default_deployment_plan:
|
create_default_deployment_plan:
|
||||||
description: >
|
description: >
|
||||||
This workflow exists to maintain backwards compatibility in pike. This
|
This workflow exists to maintain backwards compatibility in pike. This
|
||||||
|
Loading…
Reference in New Issue
Block a user