blob: 93f3fe48f5163ae30ade74b9add525306cc3538d (
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
|
# ============LICENSE_START====================================================
# =============================================================================
# Copyright (c) 2019-2020 AT&T, NOKIA
# =============================================================================
# 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======================================================
tosca_definitions_version: cloudify_dsl_1_3
imports:
- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
- plugin:k8splugin?version=>=3.4.3,<4.0.0
inputs:
aai_enrichment_host:
type: string
default: "aai.onap"
aai_enrichment_port:
type: integer
default: 8443
aai_enrichment_protocol:
type: string
default: "https"
aai_secure_enable_cert:
type: boolean
description: enable certificates-based connection with AAI
default: true
tag_version:
type: string
default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.components.bbs-event-processor:2.1.0"
replicas:
type: integer
description: number of instances
default: 1
pnf_reregistration_url:
type: string
default: "https:message-router:3905/events/unauthenticated.PNF_UPDATE"
cpe_authentication_url:
type: string
default: "https:message-router:3905/events/unauthenticated.CPE_AUTHENTICATION"
close_loop_url:
type: string
default: "https:message-router:3905/events/unauthenticated.DCAE_CL_OUTPUT"
application_policy_version:
description: Policy version value for building CL events
type: string
default: "1.0.0.5"
application_cl_target_type:
description: Close Loop target type value for building CL events
type: string
default: "VM"
application_cl_event_status:
description: Close Loop event status value for building CL events
type: string
default: "ONSET"
application_cl_version:
description: Close Loop version value for building CL events
type: string
default: "1.0.2"
application_cl_target:
description: Close Loop target value for building CL events
type: string
default: "vserver.vserver-name"
application_cl_originator:
description: Close Loop originator value for building CL events
type: string
default: "DCAE-BBS-ep"
application_rereg_policy_scope:
description: Policy Scope value for building PNF relocation CL event
type: string
default: "policyScopeReReg"
application_rereg_cl_control_name:
description: Close Loop control name value for building PNF relocation CL event
type: string
default: "clControlNameReReg"
application_cpeAuth_policy_scope:
description: Policy Scope value for building CPE Authentication CL event
type: string
default: "policyScopeCpeAuth"
application_cpeAuth_cl_control_name:
description: Close Loop control name value for building CPE Authentication CL event
type: string
default: "clControlNameCpeAuth"
application_cbs_polling_interval_sec:
type: integer
default: 120
application_logging_level:
type: string
default: "INFO"
dmaap_username:
type: string
default: "admin"
dmaap_password:
type: string
default: "admin"
dmaap_consumer_id:
type: string
default: "c12"
dmaap_consumer_group:
type: string
default: "OpenDcae-c12"
dmaap_secure_enable_cert:
type: boolean
description: enable certificates-based connection with DMaaP
default: true
internal_port:
type: string
description: Internal port on which BBS-ep is exposed
default: "8100"
external_port:
type: string
description: External port on which BBS-ep is exposed
default: "30413"
node_templates:
bbs-event-processor:
type: dcae.nodes.ContainerizedServiceComponent
properties:
application_config:
streams_subscribes:
pnf_reregistration:
type: message_router
aaf_username: { get_input: dmaap_username }
aaf_password: { get_input: dmaap_password }
dmaap_info:
topic_url: { get_input: pnf_reregistration_url }
cpe_authentication:
type: message_router
aaf_username: { get_input: dmaap_username }
aaf_password: { get_input: dmaap_password }
dmaap_info:
topic_url: { get_input: cpe_authentication_url }
streams_publishes:
close_loop:
type: message_router
aaf_username: { get_input: dmaap_username }
aaf_password: { get_input: dmaap_password }
dmaap_info:
topic_url: { get_input: close_loop_url }
dmaap.protocol: "https"
dmaap.contentType: "application/json"
dmaap.consumer.consumerId: { get_input: dmaap_consumer_id }
dmaap.consumer.consumerGroup: { get_input: dmaap_consumer_group }
dmaap.messageLimit: -1
dmaap.timeoutMs: -1
aai.host: { get_input: aai_enrichment_host }
aai.port: { get_input: aai_enrichment_port }
aai.protocol: { get_input: aai_enrichment_protocol }
aai.username: "AAI"
aai.password: "AAI"
aai.aaiIgnoreSslCertificateErrors: true
application.pipelinesPollingIntervalSec: 25
application.pipelinesTimeoutSec: 15
application.cbsPollingIntervalSec: { get_input: application_cbs_polling_interval_sec }
application.policyVersion: { get_input: application_policy_version }
application.clTargetType: { get_input: application_cl_target_type }
application.clEventStatus: { get_input: application_cl_event_status }
application.clVersion: { get_input: application_cl_version }
application.clTarget: { get_input: application_cl_target }
application.clOriginator: { get_input: application_cl_originator }
application.reregistration.policyScope: { get_input: application_rereg_policy_scope }
application.reregistration.clControlName: { get_input: application_rereg_cl_control_name }
application.cpe.authentication.policyScope: { get_input: application_cpeAuth_policy_scope }
application.cpe.authentication.clControlName: { get_input: application_cpeAuth_cl_control_name }
application.reregistration.configKey: "pnf_reregistration"
application.cpeAuth.configKey: "cpe_authentication"
application.closeLoop.configKey: "close_loop"
application.loggingLevel: { get_input: application_logging_level }
application.ssl.keyStorePath: "/opt/app/bbs-event-processor/etc/cert/cert.jks"
application.ssl.keyStorePasswordPath: "/opt/app/bbs-event-processor/etc/cert/jks.pass"
application.ssl.trustStorePath: "/opt/app/bbs-event-processor/etc/cert/trust.jks"
application.ssl.trustStorePasswordPath: "/opt/app/bbs-event-processor/etc/cert/trust.pass"
application.ssl.enableAaiCertAuth: { get_input: aai_secure_enable_cert }
application.ssl.enableDmaapCertAuth: { get_input: dmaap_secure_enable_cert }
docker_config:
healthcheck:
endpoint: /heartbeat
interval: 180s
timeout: 5s
type: http
image:
{ get_input: tag_version }
replicas: {get_input: replicas}
service_component_type: 'bbs-event-processor'
log_info:
log_directory: "/opt/app/bbs-event-processor/logs"
tls_info:
cert_directory: '/opt/app/bbs-event-processor/etc/cert'
use_tls: true
interfaces:
cloudify.interfaces.lifecycle:
start:
inputs:
ports:
- concat: [{get_input: internal_port},":",{get_input: external_port}]
|