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:
parent
0e0151c63e
commit
e78f9df974
20
hot/mistral_external.yaml
Normal file
20
hot/mistral_external.yaml
Normal 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}
|
Loading…
x
Reference in New Issue
Block a user