1 #============LICENSE_START=======================================================
3 # ================================================================================
4 # Copyright (C) 2019 Wipro Limited.
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
19 tosca_definitions_version: cloudify_dsl_1_3
21 - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
22 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.5/k8splugin_types.yaml
23 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/pgaas/1.1.0/pgaas_types.yaml
24 - https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml
28 description: replica count for deployment
32 description: docker image name and version
33 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:1.0.0"
36 description: pg cluster
37 default: "dcae-postgres.onap.svc.cluster.local"
40 description: database name
44 description: aaf username
47 description: aaf password
50 description: dmaap polling interval
54 description: dmaap polling timeout
58 description: num of solutions
62 description: minimum no. of collisions
66 description: minimum no. of confusions
70 description: maximum clusters
74 description: threshold for bad neighbors
78 description: threshold for poor neighbors
82 description: namespace
86 description: dmaap server
87 default: message-router
90 description: buffer time
94 description: consumer group
98 description: consumer id
102 description: config db location
105 description: oof location
108 description: pci optimizer name in oof
112 description: log location in host
113 default: /dockerdata-nfs/son-handler
116 description: policy id for config policy
141 type: dcae.nodes.pgaas.database
143 writerfqdn: { get_input: pgaas_cluster_name }
144 name: { get_input: database_name }
148 type: dcae.nodes.ContainerizedServiceComponent
150 cloudify.interfaces.lifecycle:
157 path: { get_input: log_path }
159 bind: /home/sonhms/logs
163 get_input: tag_version
164 service_component_type: 'dcae-sonhms'
166 always_pull_image: true
167 replicas: {get_input: replicas}
170 endpoint: /healthcheck
176 performance_management_topic:
177 aaf_username: { get_input: aaf_username }
178 aaf_password: { get_input: aaf_password }
180 location: { get_input: topic00_location }
181 client_role: { get_input: topic00_client_role }
182 client_id: { get_input: topic00_client_id }
183 topic_url: { get_input: topic00_url }
185 fault_management_topic:
186 aaf_username: { get_input: aaf_username }
187 aaf_password: { get_input: aaf_password }
189 location: { get_input: topic01_location }
190 client_role: { get_input: topic01_client_role }
191 client_id: { get_input: topic01_client_id }
192 topic_url: { get_input: topic01_url }
194 nbr_list_change_topic:
195 aaf_username: { get_input: aaf_username }
196 aaf_password: { get_input: aaf_password }
198 location: { get_input: topic02_location }
199 client_role: { get_input: topic02_client_role }
200 client_id: { get_input: topic02_client_id }
201 topic_url: { get_input: topic02_url }
203 dcae_cl_response_topic:
204 aaf_username: { get_input: aaf_username }
205 aaf_password: { get_input: aaf_password }
207 location: { get_input: topic04_location }
208 client_role: { get_input: topic04_client_role }
209 client_id: { get_input: topic04_client_id }
210 topic_url: { get_input: topic04_url }
214 aaf_username: { get_input: aaf_username }
215 aaf_password: { get_input: aaf_password }
217 location: { get_input: topic03_location }
218 client_role: { get_input: topic03_client_role }
219 client_id: { get_input: topic03_client_id }
220 topic_url: { get_input: topic03_url }
222 postgres.host: { get_attribute: [ pgaasvm, admin, host ] }
223 postgres.port: { get_attribute: [ pgaasvm, admin, port ] }
224 postgres.username: { get_attribute: [ pgaasvm, admin, user ] }
225 postgres.password: { get_attribute: [ pgaasvm, admin, password ] }
226 sonhandler.pollingInterval: { get_input: polling_interval}
227 sonhandler.pollingTimeout: { get_input: polling_timeout }
228 sonhandler.numSolutions: { get_input: num_solutions }
229 sonhandler.minCollision: { get_input: min_collision }
230 sonhandler.minConfusion: { get_input: min_confusion }
231 sonhandler.maximumClusters: { get_input: max_clusters }
232 sonhandler.badThreshold: { get_input: bad_threshold }
233 sonhandler.poorThreshold: { get_input: poor_threshold }
234 sonhandler.namespace: { get_input: namespace }
235 sonhandler.sourceId: SONHMS
236 sonhandler.dmaap.server:
237 - { get_input: dmaap }
238 sonhandler.bufferTime: { get_input: buffer_time }
239 sonhandler.cg: { get_input: cg }
240 sonhandler.cid: { get_input: cid }
241 sonhandler.configDb.service: { get_input: config_db }
242 sonhandler.oof.service: { get_input: oof }
243 sonhandler.optimizers:
244 - { get_input: pci_optimizer }
253 - type: cloudify.relationships.depends_on
255 - type: cloudify.relationships.depends_on
259 type: dcae.nodes.policy