1 # ============LICENSE_START=======================================================
2 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ============LICENSE_END=========================================================
16 #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 tosca_definitions_version: cloudify_dsl_1_3
22 - http://www.getcloudify.org/spec/cloudify/4.4/types.yaml
23 - /k8splugin/1.4.22/node-type.yaml
24 - /relationship/1.0.1/types.yaml
25 - /cloudifydmaapplugin/1.4.6/node-type.yaml
26 - /dcaepolicyplugin/2.3.1/node-type.yaml
27 - /pgaas/0.3.2/pgaas_types.yaml
29 DCAE-HELLO-WORLD-PUB-DR_feed2_feed_name:
31 description: Dmaap information needed for deploying a microservice using dmaap
33 default: 'DCAE-HELLO-WORLD-PUB-DR'
34 DCAE-HELLO-WORLD-PUB-MR_topic3_aaf_password:
36 DCAE-HELLO-WORLD-PUB-MR_topic3_aaf_username:
38 DCAE-HELLO-WORLD-PUB-MR_topic3_client_role:
40 description: client or location for dmaap (string)
41 DCAE-HELLO-WORLD-PUB-MR_topic3_location:
43 description: client or location for dmaap (string)
44 DCAE-HELLO-WORLD-PUB-MR_topic3_name:
46 description: Dmaap information needed for deploying a microservice using dmaap
48 default: 'sample_topic_1'
49 DCAE-HELLO-WORLD-SUB-DR_feed1_feed_name:
51 description: Dmaap information needed for deploying a microservice using dmaap
53 default: 'DCAE-HELLO-WORLD-SUB-DR'
54 DCAE-HELLO-WORLD-SUB-MR_topic0_aaf_password:
56 DCAE-HELLO-WORLD-SUB-MR_topic0_aaf_username:
58 DCAE-HELLO-WORLD-SUB-MR_topic0_client_role:
60 description: client or location for dmaap (string)
61 DCAE-HELLO-WORLD-SUB-MR_topic0_location:
63 description: client or location for dmaap (string)
64 DCAE-HELLO-WORLD-SUB-MR_topic0_name:
66 description: Dmaap information needed for deploying a microservice using dmaap
68 default: 'DCAE-HELLO-WORLD-SUB-MR'
72 description: additional sans (string)
75 dcae-collectors-vcc-helloworld-pm_cpu_limit:
78 description: cpu limit for deployment (string)
79 dcae-collectors-vcc-helloworld-pm_cpu_request:
82 description: cpu requested for deployment (string)
83 dcae-collectors-vcc-helloworld-pm_memory_limit:
86 description: memory limit for deployment (string)
87 dcae-collectors-vcc-helloworld-pm_memory_request:
90 description: memory requested for deployment (string)
91 dcae_service_location:
93 description: Docker host override for docker bps (string)
97 description: The idns you will be using for your deployment (string)
100 default: 'dcae-controller-vcc-helloworld-pm:18.02-001'
101 description: The docker image for you microservice (string)
107 description: The number of replicas for your kubernetes deployment (integer)
108 service_component_name_override:
110 default: 'dcae-collectors-vcc-helloworld-pm'
111 description: Unique identifier for your deployment (string)
115 description: To use or not use the aaf section (boolean)
118 description: the name entered for specific person
121 dcae-collectors-vcc-helloworld-pm_dcae-collectors-vcc-helloworld-pm:
122 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
127 DCAE-HELLO-WORLD-PUB-DR:
128 dmaap_info: <<feed2>>
130 DCAE-HELLO-WORLD-PUB-MR:
131 dmaap_info: <<topic3>>
134 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_aaf_password
136 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_aaf_username
138 DCAE-HELLO-WORLD-SUB-DR:
139 dmaap_info: <<feed1>>
141 DCAE-HELLO-WORLD-SUB-MR:
142 dmaap_info: <<topic0>>
145 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_aaf_password
147 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_aaf_username
148 isSelfServeComponent: false
151 get_input: vcc_hello_name
156 script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
161 script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
165 bind: /opt/app/dcae-certificate
167 path: /opt/app/dcae-certificate
169 bind: /opt/logs/DCAE/dmd/AGENT
171 path: /opt/logs/DCAE/helloworldpm/dmd/AGENT
173 bind: /opt/logs/DCAE/dmd/WATCHER
175 path: /opt/logs/DCAE/helloworldpm/dmd/WATCHER
177 bind: /opt/app/vcc/logs/DCAE
179 path: /opt/logs/DCAE/helloworldpm/vcc-logs
181 bind: /opt/app/vcc/archive/data
183 path: /opt/data/DCAE/helloworldpm/vcc-archive
187 get_input: dcae_service_location
188 service_component_type: dcae-collectors-vcc-helloworld-pm
195 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_client_role
197 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_location
198 route: DCAE-HELLO-WORLD-SUB-MR
203 get_input: dcae_service_location
205 route: DCAE-HELLO-WORLD-SUB-DR
210 get_input: dcae_service_location
214 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_client_role
216 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_location
217 service_component_name_override:
219 - get_secret: location_id
221 - get_input: service_component_name_override
226 - name: default-cluster
231 - get_secret: kc-kubernetes_master_ip
233 - get_secret: kc-kubernetes_master_port
234 insecure-skip-tls-verify: true
236 - name: default-context
238 cluster: default-cluster
248 get_secret: dcae-mechid-k8s-token
249 current-context: default-context
253 get_input: dcae-collectors-vcc-helloworld-pm_cpu_limit
255 get_input: dcae-collectors-vcc-helloworld-pm_memory_limit
258 get_input: dcae-collectors-vcc-helloworld-pm_cpu_request
260 get_input: dcae-collectors-vcc-helloworld-pm_memory_request
263 get_input: use_aaf_tls
264 cert_directory: /opt/app/aafcertman
265 image: aaf-init-container:1.0.1
270 fieldPath: metadata.namespace
276 - get_input: namespace
279 - name: deployer_pass
284 - get_input: namespace
292 - get_input: namespace
300 - get_input: namespace
306 - name: app_service_names
309 - get_secret: location_id
311 - get_input: service_component_name_override
315 - -idnsfqdn=$(idns_fqdn)
317 - -deployerid=$(deployer_id)
318 - -deployerpass=$(deployer_pass)
320 - -namespace=$(NAMESPACE)
321 - -services=$(app_service_names)
324 - get_input: additionalsans
325 use_aaf_tls_renewal: true
328 - -idnsfqdn=$(idns_fqdn)
338 get_input: annotations
341 type: dcae.relationships.subscribe_to_events
343 type: dcae.relationships.subscribe_to_files
345 type: dcae.relationships.publish_files
347 type: dcae.relationships.publish_events
349 type: dcae.nodes.Feed
352 get_input: DCAE-HELLO-WORLD-SUB-DR_feed1_feed_name
355 type: dcae.nodes.Feed
358 get_input: DCAE-HELLO-WORLD-PUB-DR_feed2_feed_name
361 type: dcae.nodes.Topic
364 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_name
367 type: dcae.nodes.Topic
370 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_name