Add an example of OS::Mistral::ExternalResource

I couldn't find a simple example of that resource, so here's a real
simplified one creating a workflow in the same template.

Change-Id: I9de98df8a629227ba83e50382ccba660621fcbd5
This commit is contained in:
Thomas Herve 2018-11-21 11:16:38 +01:00
parent 0e0151c63e
commit e78f9df974
1 changed files with 20 additions and 0 deletions

20
hot/mistral_external.yaml Normal file
View File

@ -0,0 +1,20 @@
heat_template_version: rocky
resources:
workflow:
type: OS::Mistral::Workflow
properties:
type: direct
tasks:
- name: hello
action: std.echo output='Good morning!'
publish:
result: 'Bye'
external_resource:
type: OS::Mistral::ExternalResource
properties:
actions:
CREATE:
workflow: {get_resource: workflow}