Merge "Link DCAE MOD design tool to Acumos Adapter"
[dcaegen2/platform.git] / mod / bpgenerator / TestCases / ves / blueprints / ves-no-change_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 #
19 #
20 #description: Collector for receiving VES events through restful interface
21 #blueprint_version: 1.5.0
22 ---
23 tosca_definitions_version: cloudify_dsl_1_3
24 imports:
25 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
26 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
27 inputs:
28   always_pull_image:
29     type: boolean
30     description: Set to true if the image should always be pulled
31     default: true
32   collector.dmaap.streamid:
33     type: string
34     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"
35   dcae-ves-collector_cpu_limit:
36     type: string
37     default: "250m"
38   dcae-ves-collector_cpu_request:
39     type: string
40     default: "250m"
41   dcae-ves-collector_memory_limit:
42     type: string
43     default: "128Mi"
44   dcae-ves-collector_memory_request:
45     type: string
46     default: "128Mi"
47   envs:
48     default: {}
49   external_port_0:
50     type: string
51     default: "8080"
52   external_port_1:
53     type: string
54     default: "8443"
55   header.authlist:
56     type: string
57     default: "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy"
58   image:
59     type: string
60     default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
61   location_id:
62     type: string
63     default: ""
64   replicas:
65     type: integer
66     description: number of instances
67     default: 1
68   service_component_name_override:
69     type: string
70     default: ""
71   ves_fault_publish_url:
72     type: string
73   ves_heartbeat_secondary_publish_url:
74     type: string
75   ves_measurement_publish_url:
76     type: string
77   ves_notification_publish_url:
78     type: string
79   ves_other_publish_url:
80     type: string
81   ves_pnfRegistration_publish_url:
82     type: string
83 node_templates:
84   dcae-ves-collector:
85     type: dcae.nodes.ContainerizedPlatformComponent
86     interfaces:
87       cloudify.interfaces.lifecycle:
88         start:
89           inputs:
90             ports:
91             - concat: ["8080:", {get_input: external_port_0}]
92             - concat: ["8443:", {get_input: external_port_1}]
93             envs:
94               get_input: envs
95     properties:
96       application_config:
97         service_calls: []
98         streams_publishes:
99           ves-fault:
100             dmaap_info:
101               topic_url:
102                 get_input: ves_fault_publish_url
103             type: message router
104           ves-heartbeat-secondary:
105             dmaap_info:
106               topic_url:
107                 get_input: ves_heartbeat_secondary_publish_url
108             type: message router
109           ves-measurement:
110             dmaap_info:
111               topic_url:
112                 get_input: ves_measurement_publish_url
113             type: message router
114           ves-notification:
115             dmaap_info:
116               topic_url:
117                 get_input: ves_notification_publish_url
118             type: message router
119           ves-other:
120             dmaap_info:
121               topic_url:
122                 get_input: ves_other_publish_url
123             type: message router
124           ves-pnfRegistration:
125             dmaap_info:
126               topic_url:
127                 get_input: ves_pnfRegistration_publish_url
128             type: message router
129         streams_subscribes: {}
130         auth.method: noAuth
131         collector.dmaap.streamid:
132           get_input: collector.dmaap.streamid
133         collector.keystore.file.location: /opt/app/dcae-certificate/keystore.jks
134         collector.keystore.passwordfile: /opt/app/dcae-certificate/.password
135         collector.schema.checkflag: 1
136         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"}
137         collector.service.port: 8080
138         collector.service.secure.port: 8443
139         collector.truststore.file.location: /opt/app/dcae-certificate/truststore.jks
140         collector.truststore.passwordfile: /opt/app/dcae-certificate/.trustpassword
141         event.transform.flag: 1
142         header.authlist:
143           get_input: header.authlist
144         service_component_name_override:
145           get_input: service_component_name_override
146         tomcat.maxthreads: 200
147       docker_config:
148         healthcheck:
149           interval: 15s
150           timeout: 1s
151           type: https
152           endpoint: /healthcheck
153         volumes:
154         - container:
155             bind: /opt/app/dcae-certificate
156           host:
157             path: /opt/app/dcae-certificate
158         - container:
159             bind: /opt/app/VESCollector/logs
160           host:
161             path: /opt/logs/DCAE/VESCollector/logs
162         - container:
163             bind: /opt/app/VESCollector/etc
164           host:
165             path: /opt/logs/DCAE/VESCollector/etc
166       image:
167         get_input: image
168       location_id:
169         get_input: location_id
170       dns_name: dcae-ves-collector
171       replicas:
172         get_input: replicas
173       name: dcae-ves-collector
174       resource_config:
175         limits:
176           cpu:
177             get_input: dcae-ves-collector_cpu_limit
178           memory:
179             get_input: dcae-ves-collector_memory_limit
180         requests:
181           cpu:
182             get_input: dcae-ves-collector_cpu_request
183           memory:
184             get_input: dcae-ves-collector_memory_request
185       always_pull_image:
186         get_input: always_pull_image
187     relationships: []