summaryrefslogtreecommitdiffstats
path: root/dpo/blueprint/blueprint_ves.yaml
blob: 43158f1c7301b2769ca2da56ec9be7e7eb92b854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# ================================================================================
# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END=========================================================
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.

tosca_definitions_version: cloudify_dsl_1_3
imports:
  - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
  - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.5/k8splugin_types.yaml
  - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
inputs:
  collector.dmaap.streamid:
    type: string
    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"
  external_port:
    type: string
    description: Kubernetes node port on which collector is exposed
    default: "30235"
  header.authlist:
    type: string
    default: "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy"
  log_directory:
    type: string
    default: "/opt/app/VESCollector/logs"
  replicas:
    type: integer
    description: number of instances
    default: 1
  tag_version:
    type: string
    default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.3"
  ves_fault_publish_url:
    type: string
  ves_fault_secondary_publish_url:
    type: string
  ves_heartbeat_publish_url:
    type: string
  ves_heartbeat_secondary_publish_url:
    type: string
  ves_measurement_publish_url:
    type: string
  ves_measurement_secondary_publish_url:
    type: string
  ves_mobileflow_publish_url:
    type: string
  ves_mobileflow_secondary_publish_url:
    type: string
  ves_notification_publish_url:
    type: string
  ves_notification_secondary_publish_url:
    type: string
  ves_other_publish_url:
    type: string
  ves_other_secondary_publish_url:
    type: string
  ves_pnfRegistration_publish_url:
    type: string
  ves_pnfRegistration_secondary_publish_url:
    type: string
  ves_sipsignaling_publish_url:
    type: string
  ves_sipsignaling_secondary_publish_url:
    type: string
  ves_statechange_publish_url:
    type: string
  ves_statechange_secondary_publish_url:
    type: string
  ves_syslog_publish_url:
    type: string
  ves_syslog_secondary_publish_url:
    type: string
  ves_thresholdCrossingAlert_publish_url:
    type: string
  ves_thresholdCrossingAlert_secondary_publish_url:
    type: string
  ves_voicequality_publish_url:
    type: string
  ves_voicequality_secondary_publish_url:
    type: string
node_templates:
  dcae-ves-collector:
    type: dcae.nodes.ContainerizedPlatformComponent
    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            ports:
              - concat: ["8443:", {get_input: external_port }]
    properties:
      application_config:
        service_calls: []
        stream_publishes:
          ves-fault:
            dmaap_info:
              topic_url:
                get_input: ves_fault_publish_url
            type: message router
          ves-fault-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_fault_secondary_publish_url
            type: message router
          ves-heartbeat:
            dmaap_info:
              topic_url:
                get_input: ves_heartbeat_publish_url
            type: message router
          ves-heartbeat-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_heartbeat_secondary_publish_url
            type: message router
          ves-measurement:
            dmaap_info:
              topic_url:
                get_input: ves_measurement_publish_url
            type: message router
          ves-measurement-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_measurement_secondary_publish_url
            type: message router
          ves-mobileflow:
            dmaap_info:
              topic_url:
                get_input: ves_mobileflow_publish_url
            type: message router
          ves-mobileflow-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_mobileflow_secondary_publish_url
            type: message router
          ves-notification:
            dmaap_info:
              topic_url:
                get_input: ves_notification_publish_url
            type: message router
          ves-notification-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_notification_secondary_publish_url
            type: message router
          ves-other:
            dmaap_info:
              topic_url:
                get_input: ves_other_publish_url
            type: message router
          ves-other-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_other_secondary_publish_url
            type: message router
          ves-pnfRegistration:
            dmaap_info:
              topic_url:
                get_input: ves_pnfRegistration_publish_url
            type: message router
          ves-pnfRegistration-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_pnfRegistration_secondary_publish_url
            type: message router
          ves-sipsignaling:
            dmaap_info:
              topic_url:
                get_input: ves_sipsignaling_publish_url
            type: message router
          ves-sipsignaling-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_sipsignaling_secondary_publish_url
            type: message router
          ves-statechange:
            dmaap_info:
              topic_url:
                get_input: ves_statechange_publish_url
            type: message router
          ves-statechange-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_statechange_secondary_publish_url
            type: message router
          ves-syslog:
            dmaap_info:
              topic_url:
                get_input: ves_syslog_publish_url
            type: message router
          ves-syslog-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_syslog_secondary_publish_url
            type: message router
          ves-thresholdCrossingAlert:
            dmaap_info:
              topic_url:
                get_input: ves_thresholdCrossingAlert_publish_url
            type: message router
          ves-thresholdCrossingAlert-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_thresholdCrossingAlert_secondary_publish_url
            type: message router
          ves-voicequality:
            dmaap_info:
              topic_url:
                get_input: ves_voicequality_publish_url
            type: message router
          ves-voicequality-secondary:
            dmaap_info:
              topic_url:
                get_input: ves_voicequality_secondary_publish_url
            type: message router
        stream_subcribes: {}
        auth.method: noAuth
        collector.dmaap.streamid:
          get_input: collector.dmaap.streamid
        collector.keystore.file.location: /opt/app/dcae-certificate/keystore.jks
        collector.keystore.passwordfile: /opt/app/dcae-certificate/.password
        collector.schema.checkflag: 1
        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"}
        collector.service.port: 8080
        collector.service.secure.port: 8443
        collector.truststore.file.location: /opt/app/dcae-certificate/truststore.jks
        collector.truststore.passwordfile: /opt/app/dcae-certificate/.trustpassword
        event.transform.flag: 1
        header.authlist:
          get_input: header.authlist
        tomcat.maxthreads: 200
      docker_config:
        interval: 15s
        timeout: 1s
        type: https
        endpoint: /healthcheck
      image:
        get_input: tag_version
      log_info:
        get_input: log_directory
      dns_name: dcae-ves-collector
      replicas:
        get_input: replicas
      name: dcae-ves-collector