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
27 description: replica count for deployment
31 description: docker image name and version
32 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.son-handler:1.0.0"
35 description: pg cluster
36 default: "dcae-postgres.onap.svc.cluster.local"
39 description: database name
43 description: aaf username
46 description: aaf password
49 description: dmaap polling interval
53 description: dmaap polling timeout
57 description: num of solutions
61 description: minimum no. of collisions
65 description: minimum no. of confusions
69 description: maximum clusters
73 description: threshold for bad neighbors
77 description: threshold for poor neighbors
81 description: namespace
85 description: dmaap server
86 default: message-router
89 description: buffer time
93 description: consumer group
97 description: consumer id
101 description: config db location
104 description: oof location
107 description: pci optimizer name in oof
111 description: log location in host
112 default: /dockerdata-nfs/son-handler
132 type: dcae.nodes.pgaas.database
134 writerfqdn: { get_input: pgaas_cluster_name }
135 name: { get_input: database_name }
139 type: dcae.nodes.ContainerizedServiceComponent
141 cloudify.interfaces.lifecycle:
148 path: { get_input: log_path }
150 bind: /home/sonhms/logs
154 get_input: tag_version
155 service_component_type: 'dcae-sonhms'
157 always_pull_image: true
158 replicas: {get_input: replicas}
161 endpoint: /healthcheck
167 performance_management_topic:
168 aaf_username: { get_input: aaf_username }
169 aaf_password: { get_input: aaf_password }
171 location: { get_input: topic00_location }
172 client_role: { get_input: topic00_client_role }
173 client_id: { get_input: topic00_client_id }
174 topic_url: { get_input: topic00_url }
176 fault_management_topic:
177 aaf_username: { get_input: aaf_username }
178 aaf_password: { get_input: aaf_password }
180 location: { get_input: topic01_location }
181 client_role: { get_input: topic01_client_role }
182 client_id: { get_input: topic01_client_id }
183 topic_url: { get_input: topic01_url }
185 nbr_list_change_topic:
186 aaf_username: { get_input: aaf_username }
187 aaf_password: { get_input: aaf_password }
189 location: { get_input: topic02_location }
190 client_role: { get_input: topic02_client_role }
191 client_id: { get_input: topic02_client_id }
192 topic_url: { get_input: topic02_url }
196 aaf_username: { get_input: aaf_username }
197 aaf_password: { get_input: aaf_password }
199 location: { get_input: topic03_location }
200 client_role: { get_input: topic03_client_role }
201 client_id: { get_input: topic03_client_id }
202 topic_url: { get_input: topic03_url }
204 postgres.host: { get_attribute: [ pgaasvm, admin, host ] }
205 postgres.port: { get_attribute: [ pgaasvm, admin, port ] }
206 postgres.username: { get_attribute: [ pgaasvm, admin, user ] }
207 postgres.password: { get_attribute: [ pgaasvm, admin, password ] }
208 sonhandler.pollingInterval: { get_input: polling_interval}
209 sonhandler.pollingTimeout: { get_input: polling_timeout }
210 sonhandler.numSolutions: { get_input: num_solutions }
211 sonhandler.minCollision: { get_input: min_collision }
212 sonhandler.minConfusion: { get_input: min_confusion }
213 sonhandler.maximumClusters: { get_input: max_clusters }
214 sonhandler.badThreshold: { get_input: bad_threshold }
215 sonhandler.poorThreshold: { get_input: poor_threshold }
216 sonhandler.namespace: { get_input: namespace }
217 sonhandler.sourceId: SONHMS
218 sonhandler.dmaap.server:
219 - { get_input: dmaap }
220 sonhandler.bufferTime: { get_input: buffer_time }
221 sonhandler.cg: { get_input: cg }
222 sonhandler.cid: { get_input: cid }
223 sonhandler.configDb.service: { get_input: config_db }
224 sonhandler.oof.service: { get_input: oof }
225 sonhandler.optimizers:
226 - { get_input: pci_optimizer }
235 - type: cloudify.relationships.depends_on