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: 'DCAE-HELLO-WORLD-PUB-MR'
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
185 bind: /opt/app/etc/config
191 get_input: dcae_service_location
192 service_component_type: dcae-collectors-vcc-helloworld-pm
199 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_client_role
201 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_location
202 route: DCAE-HELLO-WORLD-SUB-MR
207 get_input: dcae_service_location
209 route: DCAE-HELLO-WORLD-SUB-DR
214 get_input: dcae_service_location
218 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_client_role
220 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_location
221 service_component_name_override:
223 - get_secret: location_id
225 - get_input: service_component_name_override
230 - name: default-cluster
235 - get_secret: kc-kubernetes_master_ip
237 - get_secret: kc-kubernetes_master_port
238 insecure-skip-tls-verify: true
240 - name: default-context
242 cluster: default-cluster
252 get_secret: dcae-mechid-k8s-token
253 current-context: default-context
257 get_input: dcae-collectors-vcc-helloworld-pm_cpu_limit
259 get_input: dcae-collectors-vcc-helloworld-pm_memory_limit
262 get_input: dcae-collectors-vcc-helloworld-pm_cpu_request
264 get_input: dcae-collectors-vcc-helloworld-pm_memory_request
267 get_input: use_aaf_tls
268 cert_directory: /opt/app/aafcertman
269 image: aaf-init-container:1.0.1
274 fieldPath: metadata.namespace
280 - get_input: namespace
283 - name: deployer_pass
288 - get_input: namespace
296 - get_input: namespace
304 - get_input: namespace
310 - name: app_service_names
313 - get_secret: location_id
315 - get_input: service_component_name_override
319 - -idnsfqdn=$(idns_fqdn)
321 - -deployerid=$(deployer_id)
322 - -deployerpass=$(deployer_pass)
324 - -namespace=$(NAMESPACE)
325 - -services=$(app_service_names)
328 - get_input: additionalsans
329 use_aaf_tls_renewal: true
332 - -idnsfqdn=$(idns_fqdn)
342 get_input: annotations
345 type: dcae.relationships.subscribe_to_events
347 type: dcae.relationships.subscribe_to_files
349 type: dcae.relationships.publish_files
351 type: dcae.relationships.publish_events
353 type: dcae.nodes.Feed
356 get_input: DCAE-HELLO-WORLD-SUB-DR_feed1_feed_name
359 type: dcae.nodes.Feed
362 get_input: DCAE-HELLO-WORLD-PUB-DR_feed2_feed_name
365 type: dcae.nodes.Topic
368 get_input: DCAE-HELLO-WORLD-SUB-MR_topic0_name
371 type: dcae.nodes.Topic
374 get_input: DCAE-HELLO-WORLD-PUB-MR_topic3_name