Referece released artifacts
[dcaegen2/platform/blueprints.git] / blueprints / ves.yaml-template
1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
2 #
3 # ============LICENSE_START====================================================
4 # org.onap.dcae
5 # =============================================================================
6 # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
7 # =============================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #      http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END======================================================
20
21 tosca_definitions_version: cloudify_dsl_1_3
22
23
24 imports:
25   - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
26   - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/2/dockerplugin_types.yaml"
27   - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/relationshipplugin/1/relationshipplugin_types.yaml"
28
29 inputs:
30   ves_fault_publish_url:
31     type: string
32     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
33   ves_measurement_publish_url:
34     type: string
35     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_MEASUREMENT_OUTPUT"
36   dh_override:
37     type: string
38     default: "component_dockerhost"
39   dh_location_id:
40     type: string
41     default: "zone1"
42
43 node_templates:
44   docker_collector_host:
45     properties:
46       docker_host_override:
47         get_input: dh_override
48       location_id:
49         get_input: dh_location_id
50     type: dcae.nodes.SelectedDockerHost
51   ves:
52     interfaces:
53       cloudify.interfaces.lifecycle:
54         stop:
55           inputs:
56             cleanup_image: true
57         start:
58           inputs:
59            ports:
60              - '8080:8080'
61     properties:
62       application_config:
63         collector.dmaap.streamid: fault=ves_fault|syslog=ves_syslog|heartbeat=ves_heartbeat|measurementsForVfScaling=ves_measurement|mobileFlow=ves_mobileflow|other=ves_other|stateChange=ves_statechange|thresholdCrossingAlert=ves_thresholdCrossingAlert|voiceQuality=ves_voicequality|sipSignaling=ves_sipsignaling
64         collector.inputQueue.maxPending: "8096"
65         collector.keystore.alias: "dynamically generated"
66         collector.keystore.file.location: /opt/app/VESCollector/etc/keystore
67         collector.keystore.passwordfile: /opt/app/VESCollector/etc/passwordfile
68         collector.schema.checkflag: "1"
69         collector.schema.file: "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.json\"}"
70         collector.service.port: "8080"
71         collector.service.secure.port: "8443"
72         event.transform.flag: "0"
73         header.authflag: "0"
74         header.authlist: "userid1,base64encodepwd1|userid2,base64encodepwd2"
75         services_calls: []
76         streams_publishes:
77             ves_fault:
78               dmaap_info:
79                 topic_url:
80                   get_input: ves_fault_publish_url
81               type: message_router
82             ves_measurement:
83               dmaap_info:
84                 topic_url:
85                   get_input: ves_measurement_publish_url
86               type: message_router
87         tomcat.maxthreads: "200"
88       docker_config:
89         healthcheck:
90           endpoint: /healthcheck
91           interval: 15s
92           timeout: 1s
93           type: http
94       image: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.collectors.ves.vescollector:v1.1.0"
95       service_component_type: dcaegen2-collectors-ves
96     relationships:
97       - type: dcae.relationships.component_contained_in
98         target: docker_collector_host
99     type: dcae.nodes.DockerContainerForComponentsUsingDmaap