blob: 7b7148d544fb3957ea551bd9d49dae84178def7e [file] [log] [blame]
Piotr Daroszc2ac2322019-03-07 13:04:52 +01001tosca_definitions_version: cloudify_dsl_1_3
2
3imports:
4 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
5 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.4/k8splugin_types.yaml
6 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
7inputs:
8 first_app_docker_image:
9 type: string
10 default: "image1"
11 second_app_docker_image:
12 type: string
13 default: "image2"
14 third_app_docker_image:
15 type: string
16 default: "image3"
17 dmaap_ip:
18 type: string
19 default: "message-router:3904"
20 dmaap_topic:
21 type: string
22 default: "/events/unauthenticated.DCAE_CL_OUTPUT"
23 policy_id:
24 type: string
25 default: "policy_id"
26node_templates:
27 second_app:
28 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
29 properties:
30 service_component_type: dcaegen2-analytics-tca
31 service_component_name_override: second_app
32 image: { get_input: second_app_docker_image }
33 interfaces:
34 cloudify.interfaces.lifecycle:
35 start:
36 inputs:
37 envs:
38 grpc_server.host: "first_app.onap"
39 dmaap_ip: {get_input: dmaap_ip}
40 dmapp_topic: {get_input: dmaap_topic}
41 policy_id: {get_input: policy_id}
42 ports:
43 - 8080:8080
44 relationships:
45 - type: cloudify.relationships.connected_to
46 target: first_app
47 - type: clamp_node.relationships.gets_input_from
48 target: first_app
49 first_app:
50 type: dcae.nodes.ContainerizedPlatformComponent
51 properties:
52 name: first_app
53 dns_name: "first_app"
54 image: { get_input: first_app_docker_image }
55 container_port: 6565
56 interfaces:
57 cloudify.interfaces.lifecycle:
58 start:
59 inputs:
60 envs:
61 dmaap_ip: {get_input: dmaap_ip}
62 dmapp_topic: {get_input: dmaap_topic}
63 policy_id: {get_input: policy_id}
64 ports:
65 - 8081:8081
66 relationships:
67 - type: cloudify.relationships.connected_to
68 target: third_app
69 - type: clamp_node.relationships.gets_input_from
70 target: third_app
71
72 third_app:
73 type: dcae.nodes.ContainerizedPlatformComponent
74 properties:
75 name: third_app
76 dns_name: "third_app"
77 image: { get_input: third_app_docker_image }
78 container_port: 443
79 interfaces:
80 cloudify.interfaces.lifecycle:
81 start:
82 inputs:
83 envs:
84 dmaap_ip: {get_input: dmaap_ip}
85 dmapp_topic: {get_input: dmaap_topic}
86 policy_id: {get_input: policy_id}
87 ports:
88 - 8082:8082
89 tca_policy:
90 type: dcae.nodes.policy
91 properties:
92 policy_id: { get_input: policy_id }