1 # ============LICENSE_START=======================================================
3 # ================================================================================
4 # Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
19 #description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR
20 #blueprint_version: 1.0.1
22 tosca_definitions_version: cloudify_dsl_1_3
23 description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing
24 them and publishing them as PM files to local DMaaP DR
26 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
27 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
28 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml
30 DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location:
32 DCAE-HELLO-WORLD-PUB-DR_feed_name:
34 DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password:
36 DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username:
38 DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role:
40 DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location:
42 DCAE-HELLO-WORLD-PUB-MR_topic_name:
44 DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress:
46 DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location:
48 DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password:
50 DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged:
52 DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username:
54 DCAE-HELLO-WORLD-SUB-DR_feed_name:
56 DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password:
58 DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username:
60 DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role:
62 DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location:
64 DCAE-HELLO-WORLD-SUB-MR_topic_name:
66 dcae.collectors.vcc.helloworld.pm_cpu_limit:
69 dcae.collectors.vcc.helloworld.pm_cpu_request:
72 dcae.collectors.vcc.helloworld.pm_memory_limit:
75 dcae.collectors.vcc.helloworld.pm_memory_request:
82 dcaes_database_writerfqdn:
84 description: db writerfqdn
90 dti_database_writerfqdn:
92 description: db writerfqdn
98 description: number of instances
104 repo_database_writerfqdn:
106 description: db writerfqdn
108 service_component_name_override:
113 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
114 tca_policy_00_policy_id:
116 description: policy_id
118 tca_policy_11_policy_id:
120 description: policy_id
121 default: "tca_policy_id_11"
124 description: flag to indicate tls enable/disable
130 DCAE-HELLO-WORLD-PUB-DR_feed:
131 type: ccsdk.nodes.Feed
134 get_input: DCAE-HELLO-WORLD-PUB-DR_feed_name
135 DCAE-HELLO-WORLD-PUB-MR_topic:
136 type: ccsdk.nodes.Topic
139 get_input: DCAE-HELLO-WORLD-PUB-MR_topic_name
140 DCAE-HELLO-WORLD-SUB-DR_feed:
141 type: ccsdk.nodes.Feed
144 get_input: DCAE-HELLO-WORLD-SUB-DR_feed_name
145 DCAE-HELLO-WORLD-SUB-MR_topic:
146 type: ccsdk.nodes.Topic
149 get_input: DCAE-HELLO-WORLD-SUB-MR_topic_name
150 dcae.collectors.vcc.helloworld.pm:
151 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
153 cloudify.interfaces.lifecycle:
160 get_input: dcaes_database_name
177 get_input: dti_database_name
194 get_input: repo_database_name
214 DCAE-HELLO-WORLD-PUB-DR:
215 dmaap_info: <<DCAE-HELLO-WORLD-PUB-DR_feed>>
217 DCAE-HELLO-WORLD-PUB-MR:
218 dmaap_info: <<DCAE-HELLO-WORLD-PUB-MR_topic>>
221 get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password
223 get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username
225 DCAE-HELLO-WORLD-SUB-DR:
226 dmaap_info: <<DCAE-HELLO-WORLD-SUB-DR_feed>>
228 DCAE-HELLO-WORLD-SUB-MR:
229 dmaap_info: <<DCAE-HELLO-WORLD-SUB-MR_topic>>
232 get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password
234 get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username
235 isSelfServeComponent: false
236 service_component_name_override:
237 get_input: service_component_name_override
240 get_input: vcc_hello_name
245 script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
249 bind: /opt/app/dcae-certificate
251 path: /opt/app/dcae-certificate
253 bind: /opt/logs/DCAE/dmd/AGENT
255 path: /opt/logs/DCAE/helloworldpm/dmd/AGENT
257 bind: /opt/logs/DCAE/dmd/WATCHER
259 path: /opt/logs/DCAE/helloworldpm/dmd/WATCHER
261 bind: /opt/app/vcc/logs/DCAE
263 path: /opt/logs/DCAE/helloworldpm/vcc-logs
265 bind: /opt/app/vcc/archive/data
267 path: /opt/data/DCAE/helloworldpm/vcc-archive
269 get_input: tag_version
270 service_component_type: dcae-collectors-vcc-helloworld-pm
272 log_directory: /opt/app/VESCollector/logs/ecomp
276 - name: DCAE-HELLO-WORLD-PUB-DR_feed
278 get_input: DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location
280 - name: DCAE-HELLO-WORLD-PUB-MR_topic
282 get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location
284 get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role
287 - name: DCAE-HELLO-WORLD-SUB-MR_topic
289 get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location
291 get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role
293 - name: DCAE-HELLO-WORLD-SUB-DR_feed
295 get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location
298 get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username
300 get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password
302 get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged
304 get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress
305 route: /DCAE-HELLO-WORLD-SUB-DR
308 cert_directory: /opt/app/dh/etc/cert
314 get_input: dcae.collectors.vcc.helloworld.pm_cpu_limit
316 get_input: dcae.collectors.vcc.helloworld.pm_memory_limit
319 get_input: dcae.collectors.vcc.helloworld.pm_cpu_request
321 get_input: dcae.collectors.vcc.helloworld.pm_memory_request
323 - type: ccsdk.relationships.publish_files
324 target: DCAE-HELLO-WORLD-PUB-DR_feed
325 - type: ccsdk.relationships.publish_events
326 target: DCAE-HELLO-WORLD-PUB-MR_topic
327 - type: ccsdk.relationships.subscribe_to_events
328 target: DCAE-HELLO-WORLD-SUB-MR_topic
329 - type: ccsdk.relationships.subscribe_to_files
330 target: DCAE-HELLO-WORLD-SUB-DR_feed
331 - type: cloudify.relationships.depends_on
332 target: tca_policy_00
333 - type: cloudify.relationships.depends_on
334 target: tca_policy_11
335 - type: cloudify.relationships.depends_on
336 target: dcaes_pgaasdb
337 - type: cloudify.relationships.depends_on
339 - type: cloudify.relationships.depends_on
342 type: dcae.nodes.pgaas.database
345 get_input: dcaes_database_writerfqdn
347 get_input: dcaes_database_name
350 type: dcae.nodes.pgaas.database
353 get_input: dti_database_writerfqdn
355 get_input: dti_database_name
358 type: dcae.nodes.pgaas.database
361 get_input: repo_database_writerfqdn
363 get_input: repo_database_name
366 type: clamp.nodes.policy
369 get_input: tca_policy_00_policy_id
370 policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app
372 type: clamp.nodes.policy
375 get_input: tca_policy_11_policy_id
376 policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app