Merge "Add an example of OS::Mistral::ExternalResource"

This commit is contained in:
Zuul 2019-01-23 04:55:25 +00:00 committed by Gerrit Code Review
commit 840692d3d4
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}