From e78f9df974099dd1616bf1c8eca287ecf7173512 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Wed, 21 Nov 2018 11:16:38 +0100 Subject: [PATCH] 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 --- hot/mistral_external.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hot/mistral_external.yaml diff --git a/hot/mistral_external.yaml b/hot/mistral_external.yaml new file mode 100644 index 00000000..5cdb637c --- /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}