Merge "Added policyNodes, db, tls support"
[dcaegen2/platform.git] / mod / bpgenerator / TestCases / ves / blueprints / ves-with-dmaap_yaml.yaml
1 #  ============LICENSE_START=======================================================
2 #    org.onap.dcae
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
9 #
10 #    http://www.apache.org/licenses/LICENSE-2.0
11 #
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=========================================================
18 #description: Collector for receiving VES events through restful interface
19 #blueprint_version: 1.5.0
20 ---
21 tosca_definitions_version: cloudify_dsl_1_3
22 description: Collector for receiving VES events through restful interface
23 imports:
24 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
25 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
26 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml
27 inputs:
28   collector.dmaap.streamid:
29     type: string
30     default: "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary"
31   dcae-ves-collector_cpu_limit:
32     type: string
33     default: "250m"
34   dcae-ves-collector_cpu_request:
35     type: string
36     default: "250m"
37   dcae-ves-collector_memory_limit:
38     type: string
39     default: "128Mi"
40   dcae-ves-collector_memory_request:
41     type: string
42     default: "128Mi"
43   envs:
44     default: {}
45   external_port_0:
46     type: string
47     default: "8080"
48   external_port_1:
49     type: string
50     default: "8443"
51   header.authlist:
52     type: string
53     default: "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy"
54   replicas:
55     type: integer
56     description: number of instances
57     default: 1
58   service_component_name_override:
59     type: string
60     default: ""
61   tag_version:
62     type: string
63     default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
64   topic0_name:
65     type: string
66   topic1_name:
67     type: string
68   topic2_name:
69     type: string
70   topic3_name:
71     type: string
72   topic4_name:
73     type: string
74   topic5_name:
75     type: string
76   ves-fault_topic0_aaf_password:
77     type: string
78   ves-fault_topic0_aaf_username:
79     type: string
80   ves-fault_topic0_client_role:
81     type: string
82   ves-fault_topic0_location:
83     type: string
84   ves-heartbeat-secondary_topic3_aaf_password:
85     type: string
86   ves-heartbeat-secondary_topic3_aaf_username:
87     type: string
88   ves-heartbeat-secondary_topic3_client_role:
89     type: string
90   ves-heartbeat-secondary_topic3_location:
91     type: string
92   ves-measurement_topic1_aaf_password:
93     type: string
94   ves-measurement_topic1_aaf_username:
95     type: string
96   ves-measurement_topic1_client_role:
97     type: string
98   ves-measurement_topic1_location:
99     type: string
100   ves-notification_topic5_aaf_password:
101     type: string
102   ves-notification_topic5_aaf_username:
103     type: string
104   ves-notification_topic5_client_role:
105     type: string
106   ves-notification_topic5_location:
107     type: string
108   ves-other_topic2_aaf_password:
109     type: string
110   ves-other_topic2_aaf_username:
111     type: string
112   ves-other_topic2_client_role:
113     type: string
114   ves-other_topic2_location:
115     type: string
116   ves-pnfRegistration_topic4_aaf_password:
117     type: string
118   ves-pnfRegistration_topic4_aaf_username:
119     type: string
120   ves-pnfRegistration_topic4_client_role:
121     type: string
122   ves-pnfRegistration_topic4_location:
123     type: string
124 node_templates:
125   dcae-ves-collector:
126     type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
127     interfaces:
128       cloudify.interfaces.lifecycle:
129         start:
130           inputs:
131             ports:
132             - concat: ["8080:", {get_input: external_port_0}]
133             - concat: ["8443:", {get_input: external_port_1}]
134             envs:
135               get_input: envs
136     properties:
137       application_config:
138         service_calls: []
139         streams_publishes:
140           ves-fault:
141             dmaap_info: <<topic0>>
142             type: message router
143             pass:
144               get_input: ves-fault_topic0_aaf_password
145             user:
146               get_input: ves-fault_topic0_aaf_username
147           ves-heartbeat-secondary:
148             dmaap_info: <<topic3>>
149             type: message router
150             pass:
151               get_input: ves-heartbeat-secondary_topic3_aaf_password
152             user:
153               get_input: ves-heartbeat-secondary_topic3_aaf_username
154           ves-measurement:
155             dmaap_info: <<topic1>>
156             type: message router
157             pass:
158               get_input: ves-measurement_topic1_aaf_password
159             user:
160               get_input: ves-measurement_topic1_aaf_username
161           ves-notification:
162             dmaap_info: <<topic5>>
163             type: message router
164             pass:
165               get_input: ves-notification_topic5_aaf_password
166             user:
167               get_input: ves-notification_topic5_aaf_username
168           ves-other:
169             dmaap_info: <<topic2>>
170             type: message router
171             pass:
172               get_input: ves-other_topic2_aaf_password
173             user:
174               get_input: ves-other_topic2_aaf_username
175           ves-pnfRegistration:
176             dmaap_info: <<topic4>>
177             type: message router
178             pass:
179               get_input: ves-pnfRegistration_topic4_aaf_password
180             user:
181               get_input: ves-pnfRegistration_topic4_aaf_username
182         streams_subscribes: {}
183         auth.method: noAuth
184         collector.dmaap.streamid:
185           get_input: collector.dmaap.streamid
186         collector.keystore.file.location: /opt/app/dcae-certificate/keystore.jks
187         collector.keystore.passwordfile: /opt/app/dcae-certificate/.password
188         collector.schema.checkflag: 1
189         collector.schema.file: {"v1":"./etc/CommonEventFormat_27.2.json","v2":"./etc/CommonEventFormat_27.2.json","v3":"./etc/CommonEventFormat_27.2.json","v4":"./etc/CommonEventFormat_27.2.json","v5":"./etc/CommonEventFormat_28.4.1.json","v7":"./etc/CommonEventFormat_30.json"}
190         collector.service.port: 8080
191         collector.service.secure.port: 8443
192         collector.truststore.file.location: /opt/app/dcae-certificate/truststore.jks
193         collector.truststore.passwordfile: /opt/app/dcae-certificate/.trustpassword
194         event.transform.flag: 1
195         header.authlist:
196           get_input: header.authlist
197         service_component_name_override:
198           get_input: service_component_name_override
199         tomcat.maxthreads: 200
200       docker_config:
201         healthcheck:
202           interval: 15s
203           timeout: 1s
204           type: http
205           endpoint: /healthcheck
206         volumes:
207         - container:
208             bind: /opt/app/dcae-certificate
209           host:
210             path: /opt/app/dcae-certificate
211         - container:
212             bind: /opt/app/VESCollector/logs
213           host:
214             path: /opt/logs/DCAE/VESCollector/logs
215         - container:
216             bind: /opt/app/VESCollector/etc
217           host:
218             path: /opt/logs/DCAE/VESCollector/etc
219       image:
220         get_input: tag_version
221       service_component_type: dcae-ves-collector
222       replicas:
223         get_input: replicas
224       streams_publishes:
225       - name: topic0
226         location:
227           get_input: ves-fault_topic0_location
228         client_role:
229           get_input: ves-fault_topic0_client_role
230         type: message router
231       - name: topic1
232         location:
233           get_input: ves-measurement_topic1_location
234         client_role:
235           get_input: ves-measurement_topic1_client_role
236         type: message router
237       - name: topic2
238         location:
239           get_input: ves-other_topic2_location
240         client_role:
241           get_input: ves-other_topic2_client_role
242         type: message router
243       - name: topic3
244         location:
245           get_input: ves-heartbeat-secondary_topic3_location
246         client_role:
247           get_input: ves-heartbeat-secondary_topic3_client_role
248         type: message router
249       - name: topic4
250         location:
251           get_input: ves-pnfRegistration_topic4_location
252         client_role:
253           get_input: ves-pnfRegistration_topic4_client_role
254         type: message router
255       - name: topic5
256         location:
257           get_input: ves-notification_topic5_location
258         client_role:
259           get_input: ves-notification_topic5_client_role
260         type: message router
261       resource_config:
262         limits:
263           cpu:
264             get_input: dcae-ves-collector_cpu_limit
265           memory:
266             get_input: dcae-ves-collector_memory_limit
267         requests:
268           cpu:
269             get_input: dcae-ves-collector_cpu_request
270           memory:
271             get_input: dcae-ves-collector_memory_request
272     relationships:
273     - type: ccsdk.relationships.publish_events
274       target: topic0
275     - type: ccsdk.relationships.publish_events
276       target: topic1
277     - type: ccsdk.relationships.publish_events
278       target: topic2
279     - type: ccsdk.relationships.publish_events
280       target: topic3
281     - type: ccsdk.relationships.publish_events
282       target: topic4
283     - type: ccsdk.relationships.publish_events
284       target: topic5
285   topic0:
286     type: ccsdk.nodes.Topic
287     properties:
288       topic_name:
289         get_input: topic0_name
290   topic1:
291     type: ccsdk.nodes.Topic
292     properties:
293       topic_name:
294         get_input: topic1_name
295   topic2:
296     type: ccsdk.nodes.Topic
297     properties:
298       topic_name:
299         get_input: topic2_name
300   topic3:
301     type: ccsdk.nodes.Topic
302     properties:
303       topic_name:
304         get_input: topic3_name
305   topic4:
306     type: ccsdk.nodes.Topic
307     properties:
308       topic_name:
309         get_input: topic4_name
310   topic5:
311     type: ccsdk.nodes.Topic
312     properties:
313       topic_name:
314         get_input: topic5_name