summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Herve <therve@redhat.com>2018-11-21 11:16:38 +0100
committerThomas Herve <therve@redhat.com>2018-11-21 11:16:38 +0100
commite78f9df974099dd1616bf1c8eca287ecf7173512 (patch)
tree3b12698ad941a46148e04d27e17a4ecd9c013df9
parent0e0151c63ee8b3126e9ef340127a135d9494cca9 (diff)
downloadheat-templates-e78f9df974099dd1616bf1c8eca287ecf7173512.tar.gz
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
-rw-r--r--hot/mistral_external.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/hot/mistral_external.yaml b/hot/mistral_external.yaml
new file mode 100644
index 0000000..5cdb637
--- /dev/null
+++ b/hot/mistral_external.yaml
@@ -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}