diff options
author | Tommy Carpenter <tommy@research.att.com> | 2017-08-18 14:16:44 -0400 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2017-08-18 14:19:20 -0400 |
commit | c272a87b84189f3bf8b3c7287199b816affc9926 (patch) | |
tree | b8d67976ed993633dbb6310df40481c59c641860 /cdap/demo_blueprints/cdap_hello_world.yaml | |
parent | 2e71445141fcbe92e8e12ab24d065040d8de6d9c (diff) |
[DCAEGEN2-74] Push up initial CDAP plugin
Change-Id: I2bad410e5c55a59950cabe8fc13066954c4f5c92
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'cdap/demo_blueprints/cdap_hello_world.yaml')
-rw-r--r-- | cdap/demo_blueprints/cdap_hello_world.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/cdap/demo_blueprints/cdap_hello_world.yaml b/cdap/demo_blueprints/cdap_hello_world.yaml new file mode 100644 index 0000000..1b7ff90 --- /dev/null +++ b/cdap/demo_blueprints/cdap_hello_world.yaml @@ -0,0 +1,40 @@ +tosca_definitions_version: cloudify_dsl_1_3 + +imports: + - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml + - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2 }}/type_files/cdap/14.0.2/cdap_types.yaml + +inputs: + hello_world_jar_url: + type: string + connected_broker_dns_name: + type: string + default : "cdap_broker" + +node_templates: + + hw_cdap_app: + type: dcae.nodes.MicroService.cdap + properties: + service_component_type: + 'hello_world' + jar_url: { get_input : hello_world_jar_url } + artifact_name: "HelloWorld" + artifact_version: "3.4.3" + namespace: "cloudifyhwtest" + programs: + [{"program_type" : "flows", "program_id" : "WhoFlow"}, {"program_type" : "services", "program_id" : "Greeting"}] + streamname: + 'who' + service_endpoints: + [{"service_name" : "Greeting", "service_endpoint" : "greet", "endpoint_method" : "GET"}] + interfaces: + cloudify.interfaces.lifecycle: + create: + inputs: + connected_broker_dns_name: { get_input: connected_broker_dns_name } + +outputs: + hw_cdap_app_name: + value: + {get_attribute:[hw_cdap_app, service_component_name]} |