blob: 92deaa4436272277be9799865e995c5f61af5bcf [file] [log] [blame]
vagrant230d6b62018-03-21 10:16:04 +00001#
2# ============LICENSE_START====================================================
3# org.onap.dcae
4# =============================================================================
vagrantc0c8a322018-04-27 10:33:09 +00005# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
vagrant230d6b62018-03-21 10:16:04 +00006# =============================================================================
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16# See the License for the specific language governing permissions and
17# limitations under the License.
18# ============LICENSE_END======================================================
19
20tosca_definitions_version: cloudify_dsl_1_3
21
22
23imports:
24 - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
Schmalzried, Terry (ts862m)b5634d52019-02-06 15:57:23 -050025 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/dockerplugin/3.2.1/dockerplugin_types.yaml"
Hansen, Tony (th1395)68765fc2018-04-27 00:37:31 +000026 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml"
vagrantc0c8a322018-04-27 10:33:09 +000027 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml"
28inputs:
29 aaiEnrichmentHost:
30 default: none
vagrant230d6b62018-03-21 10:16:04 +000031 type: string
vagrantc0c8a322018-04-27 10:33:09 +000032 aaiEnrichmentPort:
33 default: 8443
vagrant230d6b62018-03-21 10:16:04 +000034 type: string
vagrantc0c8a322018-04-27 10:33:09 +000035 cbs_host:
36 default: config-binding-service.dcae
37 type: string
38 cbs_port:
39 default: "10000"
40 type: string
41 consul_host:
42 default: consul-server.onap-consul
43 type: string
44 consul_port:
45 default: "8500"
46 type: string
47 dh_location_id:
48 default: zone1
49 type: string
50 dh_override:
51 default: component_dockerhost
52 type: string
53 dmaap_host:
54 default: dmaap.onap-message-router
55 type: string
56 dmaap_port:
57 default: 3904
58 type: string
59 enableAAIEnrichment:
vagrant230d6b62018-03-21 10:16:04 +000060 default: false
vagrant230d6b62018-03-21 10:16:04 +000061 type: string
vagrantc0c8a322018-04-27 10:33:09 +000062 enableRedisCaching:
63 default: false
vagrant230d6b62018-03-21 10:16:04 +000064 type: string
vagrantc0c8a322018-04-27 10:33:09 +000065 external_port:
66 default: "32016"
67 description: "Port for CDAPgui to be exposed"
vagrant230d6b62018-03-21 10:16:04 +000068 type: string
vagrantc0c8a322018-04-27 10:33:09 +000069 policy_id:
70 default: none
vagrant230d6b62018-03-21 10:16:04 +000071 type: string
vagrantc0c8a322018-04-27 10:33:09 +000072 redisHosts:
vagrant230d6b62018-03-21 10:16:04 +000073 type: string
vagrantc0c8a322018-04-27 10:33:09 +000074 tag_version:
75 default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.0.0"
vagrant230d6b62018-03-21 10:16:04 +000076 type: string
vagrantc0c8a322018-04-27 10:33:09 +000077node_templates:
78 docker_service_host:
79 properties:
80 docker_host_override:
vagrant230d6b62018-03-21 10:16:04 +000081 get_input: dh_override
vagrantc0c8a322018-04-27 10:33:09 +000082 location_id:
vagrant230d6b62018-03-21 10:16:04 +000083 get_input: dh_location_id
84 type: dcae.nodes.SelectedDockerHost
vagrantc0c8a322018-04-27 10:33:09 +000085 tca_docker:
86 interfaces:
87 cloudify.interfaces.lifecycle:
88 start:
89 inputs:
90 envs:
91 AAIHOST:
92 get_input: aaiEnrichmentHost
93 AAIPORT:
94 get_input: aaiEnrichmentPort
95 CBS_HOST:
96 get_input: cbs_host
97 CBS_PORT:
98 get_input: cbs_port
99 CONFIG_BINDING_SERVICE: config_binding_service
100 CONSUL_HOST:
101 get_input: consul_host
102 CONSUL_PORT:
103 get_input: consul_port
104 DMAAPHOST:
105 get_input: dmaap_host
106 DMAAPPORT:
107 get_input: dmaap_port
108 DMAAPPUBTOPIC: unauthenticated.DCAE_CL_OUTPUT
Lusheng Ji42f95082018-05-11 11:16:27 -0400109 DMAAPSUBTOPIC: unauthenticated.VES_MEASUREMENT_OUTPUT
vagrantc0c8a322018-04-27 10:33:09 +0000110# SERVICE_11011_IGNORE: "true"
111 SERVICE_11015_IGNORE: "true"
112 ports:
113 - concat: ["11011:", { get_input: external_port }]
114 stop:
115 inputs:
vagrant230d6b62018-03-21 10:16:04 +0000116 cleanup_image: true
vagrantc0c8a322018-04-27 10:33:09 +0000117 properties:
118 application_config:
119 app_config:
120 appDescription: "DCAE Analytics Threshold Crossing Alert Application"
121 appName: dcae-tca
122 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
123 tcaAlertsAbatementTableTTLSeconds: "1728000"
124 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
125 tcaVESAlertsTableName: TCAVESAlertsTable
126 tcaVESAlertsTableTTLSeconds: "1728000"
127 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
128 tcaVESMessageStatusTableTTLSeconds: "86400"
129 thresholdCalculatorFlowletInstances: "2"
130 app_preferences:
131 aaiEnrichmentHost:
132 get_input: aaiEnrichmentHost
133 aaiEnrichmentIgnoreSSLCertificateErrors: "true"
134 aaiEnrichmentPortNumber: "8443"
135 aaiEnrichmentProtocol: https
136 aaiEnrichmentUserName: DCAE
137 aaiEnrichmentUserPassword: DCAE
138 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
139 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
140 enableAAIEnrichment:
141 get_input: enableAAIEnrichment
142 enableAlertCEFFormat: "false"
143 enableRedisCaching:
144 get_input: enableRedisCaching
145 publisherContentType: application/json
146 publisherHostName:
147 get_input: dmaap_host
148 publisherHostPort:
149 get_input: dmaap_port
150 publisherMaxBatchSize: "1"
151 publisherMaxRecoveryQueueSize: "100000"
152 publisherPollingInterval: "20000"
153 publisherProtocol: http
154 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
155 redisHosts:
156 get_input: redisHosts
157 subscriberConsumerGroup: OpenDCAE-c12
158 subscriberConsumerId: c12
159 subscriberContentType: application/json
160 subscriberHostName:
161 get_input: dmaap_host
162 subscriberHostPort:
163 get_input: dmaap_port
164 subscriberMessageLimit: "-1"
165 subscriberPollingInterval: "30000"
166 subscriberProtocol: http
167 subscriberTimeoutMS: "-1"
Lusheng Ji42f95082018-05-11 11:16:27 -0400168 subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT
vagrantc0c8a322018-04-27 10:33:09 +0000169 tca_policy: "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}"
170 docker_config:
171 healthcheck:
172 endpoint: /
vagrant230d6b62018-03-21 10:16:04 +0000173 interval: 15s
174 timeout: 1s
175 type: http
vagrantf751bdf2018-03-21 18:08:00 +0000176 image:
177 get_input: tag_version
vagrantc0c8a322018-04-27 10:33:09 +0000178 service_component_type: dcaegen2-analytics_tca
179 relationships:
180 -
181 target: docker_service_host
182 type: dcae.relationships.component_contained_in
183 -
184 target: tca_policy
185 type: cloudify.relationships.depends_on
186 type: dcae.nodes.DockerContainerForComponentsUsingDmaap
187 tca_policy:
188 properties:
189 policy_id:
190 get_input: policy_id
191 type: dcae.nodes.policy
vagrant230d6b62018-03-21 10:16:04 +0000192