1 # ============LICENSE_START====================================================
2 # =============================================================================
3 # Copyright (C) 2019-2021 AT&T
4 # Copyright (C) 2020 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
22 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
23 - plugin:k8splugin?version=>=3.4.3,<4.0.0
24 - plugin:pgaas?version=1.3.0
30 default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.heartbeat:2.2.0'
33 default: 'dcae-heartbeat-service'
36 description: number of instances
40 description: Network port that the platform service is expecting to expose on the host
44 description: Network port that the platform service exposes in the container
48 description: Consul endpoint address
49 default: 'consul-server.onap'
52 description: Consul endpoint port
71 description: pg cluster
72 default: "dcae-pg-primary.onap"
76 ves_heartbeat_publish_url:
78 default: 'http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT'
81 default: 'http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.DCAE_CL_OUTPUT'
84 type: dcae.nodes.pgaas.database
86 writerfqdn: { get_input: pgaas_cluster_name }
87 name: { get_input: pg_dbName}
92 cloudify.interfaces.lifecycle:
97 get_input: CBS_polling_allowed
98 CBS_polling_interval: "300"
103 { get_attribute: [ hbpgaas, admin, host ] }
105 { get_attribute: [ hbpgaas, admin, password ] }
107 { get_attribute: [ hbpgaas, admin, port ] }
109 { get_attribute: [ hbpgaas, admin, user ] }
118 get_input: CBS_polling_allowed
119 CBS_polling_interval:
120 get_input: CBS_polling_interval
122 get_input: consumerID
126 { get_attribute: [ hbpgaas, admin, host ] }
128 { get_attribute: [ hbpgaas, admin, password ] }
130 { get_attribute: [ hbpgaas, admin, port ] }
132 { get_attribute: [ hbpgaas, admin, user ] }
135 heartbeat_config: '{"vnfs": [{"eventName": "Heartbeat_vDNS","heartbeatcountmissed": 3,"heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1", "policyVersion": "1.0.0.5", "policyName":"vFireWall","policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName","target_type": "VNF", "target": "genVnfName", "version": "1.0"}, {"eventName": "Heartbeat_vFW","heartbeatcountmissed": 3, "heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1","policyVersion": "1.0.0.5","policyName": "vFireWall","policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName", "target_type":"VNF", "target": "genVnfName", "version": "1.0"}, {"eventName": "Heartbeat_xx","heartbeatcountmissed": 3, "heartbeatinterval": 60,"closedLoopControlName": "ControlLoopEvent1","policyVersion": "1.0.0.5","policyName": "vFireWall", "policyScope": "resource=sampleResource,type=sampletype,CLName=sampleCLName","target_type": "VNF","target": "genVnfName","version": "1.0"}]}'
140 get_input: dcae_CL_publish_url
146 get_input: ves_heartbeat_publish_url
154 service_component_type:
155 get_input: heartbeat_name
156 image: { get_input: tag_version }
157 replicas: { get_input: replicas }
159 log_directory: '/var/log/ONAP/dcae-heartbeat-services'
160 type: dcae.nodes.ContainerizedServiceComponent
162 - type: cloudify.relationships.depends_on