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.1.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: cbs polling interval
58 description: dmaap polling timeout
62 description: num of solutions
66 description: minimum no. of collisions
70 description: minimum no. of confusions
74 description: maximum clusters
78 description: threshold for bad neighbors
82 description: threshold for poor neighbors
86 description: namespace
90 description: dmaap server
91 default: message-router
94 description: buffer time
98 description: consumer group
102 description: consumer id
106 description: config db location
109 description: oof location
112 description: oof endpoint
113 default: /api/oof/v1/pci
116 description: pci optimizer name in oof
120 description: pci and anr optimizer name in oof
124 description: log location in host
125 default: /dockerdata-nfs/son-handler
128 description: poor neighbor count threshold
132 description: bad neighbor count threshold
134 oofTriggerCountTimer:
136 description: timer for oof triggered count in minutes
138 oofTriggerCountThreshold:
140 description: Threshold for oof trigger count
144 description: policy response wait timer in seconds
148 description: policy id for config policy
173 type: dcae.nodes.pgaas.database
175 writerfqdn: { get_input: pgaas_cluster_name }
176 name: { get_input: database_name }
180 type: dcae.nodes.ContainerizedServiceComponent
182 cloudify.interfaces.lifecycle:
189 path: { get_input: log_path }
191 bind: /home/sonhms/logs
195 get_input: tag_version
196 service_component_type: 'dcae-sonhms'
198 always_pull_image: true
199 replicas: {get_input: replicas}
202 endpoint: /healthcheck
208 performance_management_topic:
209 aaf_username: { get_input: aaf_username }
210 aaf_password: { get_input: aaf_password }
212 location: { get_input: topic00_location }
213 client_role: { get_input: topic00_client_role }
214 client_id: { get_input: topic00_client_id }
215 topic_url: { get_input: topic00_url }
217 fault_management_topic:
218 aaf_username: { get_input: aaf_username }
219 aaf_password: { get_input: aaf_password }
221 location: { get_input: topic01_location }
222 client_role: { get_input: topic01_client_role }
223 client_id: { get_input: topic01_client_id }
224 topic_url: { get_input: topic01_url }
226 nbr_list_change_topic:
227 aaf_username: { get_input: aaf_username }
228 aaf_password: { get_input: aaf_password }
230 location: { get_input: topic02_location }
231 client_role: { get_input: topic02_client_role }
232 client_id: { get_input: topic02_client_id }
233 topic_url: { get_input: topic02_url }
235 dcae_cl_response_topic:
236 aaf_username: { get_input: aaf_username }
237 aaf_password: { get_input: aaf_password }
239 location: { get_input: topic04_location }
240 client_role: { get_input: topic04_client_role }
241 client_id: { get_input: topic04_client_id }
242 topic_url: { get_input: topic04_url }
246 aaf_username: { get_input: aaf_username }
247 aaf_password: { get_input: aaf_password }
249 location: { get_input: topic03_location }
250 client_role: { get_input: topic03_client_role }
251 client_id: { get_input: topic03_client_id }
252 topic_url: { get_input: topic03_url }
254 postgres.host: { get_attribute: [ pgaasvm, admin, host ] }
255 postgres.port: { get_attribute: [ pgaasvm, admin, port ] }
256 postgres.username: { get_attribute: [ pgaasvm, admin, user ] }
257 postgres.password: { get_attribute: [ pgaasvm, admin, password ] }
258 sonhandler.pollingInterval: { get_input: polling_interval}
259 sonhandler.pollingTimeout: { get_input: polling_timeout }
260 cbsPollingInterval: { get_input: cbs_polling_interval }
261 sonhandler.numSolutions: { get_input: num_solutions }
262 sonhandler.minCollision: { get_input: min_collision }
263 sonhandler.minConfusion: { get_input: min_confusion }
264 sonhandler.maximumClusters: { get_input: max_clusters }
265 sonhandler.badThreshold: { get_input: bad_threshold }
266 sonhandler.poorThreshold: { get_input: poor_threshold }
267 sonhandler.namespace: { get_input: namespace }
268 sonhandler.sourceId: SONHMS
269 sonhandler.dmaap.server:
270 - { get_input: dmaap }
271 sonhandler.bufferTime: { get_input: buffer_time }
272 sonhandler.cg: { get_input: cg }
273 sonhandler.cid: { get_input: cid }
274 sonhandler.configDb.service: { get_input: config_db }
275 sonhandler.oof.service: { get_input: oof }
276 sonhandler.oof.endpoint: { get_input: oof_endpoint }
277 sonhandler.pciOptimizer: { get_input: pci_optimizer }
278 sonhandler.pciAnrOptimizer: { get_input: pci_anr_optimizer }
279 sonhandler.poorCountThreshold: { get_input: poorCountThreshold}
280 sonhandler.badCountThreshold: { get_input: badCountThreshold}
281 sonhandler.oofTriggerCountTimer: { get_input: oofTriggerCountTimer}
282 sonhandler.oofTriggerCountThreshold: { get_input: oofTriggerCountThreshold}
283 sonhandler.policyRespTimer: { get_input: policyRespTimer}
292 - type: cloudify.relationships.depends_on
294 - type: cloudify.relationships.depends_on
298 type: dcae.nodes.policy