vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START==================================================== |
| 3 | # org.onap.dcae |
| 4 | # ============================================================================= |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 5 | # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 6 | # ============================================================================= |
| 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 | |
| 20 | tosca_definitions_version: cloudify_dsl_1_3 |
| 21 | |
| 22 | |
| 23 | imports: |
| 24 | - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml" |
Schmalzried, Terry (ts862m) | b5634d5 | 2019-02-06 15:57:23 -0500 | [diff] [blame] | 25 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/dockerplugin/3.2.1/dockerplugin_types.yaml" |
Hansen, Tony (th1395) | 68765fc | 2018-04-27 00:37:31 +0000 | [diff] [blame] | 26 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml" |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 27 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/dcaepolicyplugin/2.3.0/dcaepolicyplugin_types.yaml" |
| 28 | inputs: |
| 29 | aaiEnrichmentHost: |
| 30 | default: none |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 31 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 32 | aaiEnrichmentPort: |
| 33 | default: 8443 |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 34 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 35 | 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: |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 60 | default: false |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 61 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 62 | enableRedisCaching: |
| 63 | default: false |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 64 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 65 | external_port: |
| 66 | default: "32016" |
| 67 | description: "Port for CDAPgui to be exposed" |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 68 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 69 | policy_id: |
| 70 | default: none |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 71 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 72 | redisHosts: |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 73 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 74 | tag_version: |
| 75 | default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.deployments.tca-cdap-container:1.0.0" |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 76 | type: string |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 77 | node_templates: |
| 78 | docker_service_host: |
| 79 | properties: |
| 80 | docker_host_override: |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 81 | get_input: dh_override |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 82 | location_id: |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 83 | get_input: dh_location_id |
| 84 | type: dcae.nodes.SelectedDockerHost |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 85 | 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 Ji | 42f9508 | 2018-05-11 11:16:27 -0400 | [diff] [blame] | 109 | DMAAPSUBTOPIC: unauthenticated.VES_MEASUREMENT_OUTPUT |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 110 | # SERVICE_11011_IGNORE: "true" |
| 111 | SERVICE_11015_IGNORE: "true" |
| 112 | ports: |
| 113 | - concat: ["11011:", { get_input: external_port }] |
| 114 | stop: |
| 115 | inputs: |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 116 | cleanup_image: true |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 117 | 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 Ji | 42f9508 | 2018-05-11 11:16:27 -0400 | [diff] [blame] | 168 | subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 169 | 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: / |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 173 | interval: 15s |
| 174 | timeout: 1s |
| 175 | type: http |
vagrant | f751bdf | 2018-03-21 18:08:00 +0000 | [diff] [blame] | 176 | image: |
| 177 | get_input: tag_version |
vagrant | c0c8a32 | 2018-04-27 10:33:09 +0000 | [diff] [blame] | 178 | 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 |
vagrant | 230d6b6 | 2018-03-21 10:16:04 +0000 | [diff] [blame] | 192 | |