blob: 0653e3d6b58a1561df43e93b9b9489dc83ad020c [file] [log] [blame]
Lusheng Ji3bc77b82017-10-10 20:14:48 +00001# -*- 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
Vijay3e8e8f72017-10-25 20:41:00 +000011#
Lusheng Ji3bc77b82017-10-10 20:14:48 +000012# http://www.apache.org/licenses/LICENSE-2.0
Vijay3e8e8f72017-10-25 20:41:00 +000013#
Lusheng Ji3bc77b82017-10-10 20:14:48 +000014# 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
21tosca_definitions_version: cloudify_dsl_1_3
22
23
Vijay3e8e8f72017-10-25 20:41:00 +000024imports:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000025 - "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"
Hansen, Tony (th1395)68765fc2018-04-27 00:37:31 +000027 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000028
29inputs:
vagrantf751bdf2018-03-21 18:08:00 +000030 ves_other_publish_url:
31 type: string
32 default: "http://10.0.11.1:3904/events/unauthenticated.SEC_OTHER_OUTPUT"
33 ves_heartbeat_publish_url:
34 type: string
35 default: "http://10.0.11.1:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000036 ves_fault_publish_url:
37 type: string
Vijayc41a39d2017-10-27 20:14:28 +000038 default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000039 ves_measurement_publish_url:
40 type: string
Lusheng Ji42f95082018-05-11 11:16:27 -040041 default: "http://10.0.11.1:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
vagrantf129cca2018-08-02 23:00:25 +000042 ves_notification_publish_url:
43 type: string
44 default: "http://10.0.11.1:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT"
45 ves_pnfRegistration_publish_url:
46 type: string
47 default: "http://10.0.11.1:3904/events/unauthenticated.VES_PNFREG_OUTPUT"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000048 dh_override:
49 type: string
Vijay963956d2017-10-21 12:53:39 +000050 default: "component_dockerhost"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000051 dh_location_id:
52 type: string
Vijay963956d2017-10-21 12:53:39 +000053 default: "zone1"
vagrantf751bdf2018-03-21 18:08:00 +000054 tag_version:
55 type: string
vagrantf129cca2018-08-02 23:00:25 +000056 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.3.1"
Lusheng Ji3bc77b82017-10-10 20:14:48 +000057
Vijay3e8e8f72017-10-25 20:41:00 +000058node_templates:
59 docker_collector_host:
60 properties:
61 docker_host_override:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000062 get_input: dh_override
Vijay3e8e8f72017-10-25 20:41:00 +000063 location_id:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000064 get_input: dh_location_id
65 type: dcae.nodes.SelectedDockerHost
Vijay3e8e8f72017-10-25 20:41:00 +000066 ves:
67 interfaces:
68 cloudify.interfaces.lifecycle:
69 stop:
70 inputs:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000071 cleanup_image: true
Vijay3e8e8f72017-10-25 20:41:00 +000072 start:
73 inputs:
74 ports:
75 - '8080:8080'
76 properties:
77 application_config:
vagrantf129cca2018-08-02 23:00:25 +000078 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|notification=ves-notification|pnfRegistration=ves-pnfRegistration
Lusheng Ji3bc77b82017-10-10 20:14:48 +000079 collector.inputQueue.maxPending: "8096"
80 collector.keystore.alias: "dynamically generated"
Vijay963956d2017-10-21 12:53:39 +000081 collector.keystore.file.location: /opt/app/VESCollector/etc/keystore
82 collector.keystore.passwordfile: /opt/app/VESCollector/etc/passwordfile
Lusheng Ji3bc77b82017-10-10 20:14:48 +000083 collector.schema.checkflag: "1"
vagrantf129cca2018-08-02 23:00:25 +000084 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\",\"v7\":\"./etc/CommonEventFormat_30.0.1.json\"}
Lusheng Ji3bc77b82017-10-10 20:14:48 +000085 collector.service.port: "8080"
86 collector.service.secure.port: "8443"
87 event.transform.flag: "0"
88 header.authflag: "0"
89 header.authlist: "userid1,base64encodepwd1|userid2,base64encodepwd2"
90 services_calls: []
Vijay3e8e8f72017-10-25 20:41:00 +000091 streams_publishes:
vagrantf129cca2018-08-02 23:00:25 +000092 ves-fault:
Vijay3e8e8f72017-10-25 20:41:00 +000093 dmaap_info:
94 topic_url:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000095 get_input: ves_fault_publish_url
96 type: message_router
vagrantf129cca2018-08-02 23:00:25 +000097 ves-measurement:
Vijay3e8e8f72017-10-25 20:41:00 +000098 dmaap_info:
Lusheng Ji3bc77b82017-10-10 20:14:48 +000099 topic_url:
100 get_input: ves_measurement_publish_url
101 type: message_router
vagrantf129cca2018-08-02 23:00:25 +0000102 ves-notification:
103 dmaap_info:
104 topic_url:
105 get_input: ves_notification_publish_url
106 type: message_router
107 ves-pnfRegistration:
108 dmaap_info:
109 topic_url:
110 get_input: ves_pnfRegistration_publish_url
111 type: message_router
112 ves-heartbeat:
113 dmaap_info:
114 topic_url:
115 get_input: ves_heartbeat_publish_url
116 type: message_router
117 ves-other:
118 dmaap_info:
119 topic_url:
120 get_input: ves_other_publish_url
121 type: message_router
122 collector.dynamic.config.update.frequency: "5"
Vijay3e8e8f72017-10-25 20:41:00 +0000123 docker_config:
124 healthcheck:
Lusheng Ji3bc77b82017-10-10 20:14:48 +0000125 endpoint: /healthcheck
126 interval: 15s
127 timeout: 1s
128 type: http
vagrantf751bdf2018-03-21 18:08:00 +0000129 image:
130 get_input: tag_version
Lusheng Ji3bc77b82017-10-10 20:14:48 +0000131 service_component_type: dcaegen2-collectors-ves
132 relationships:
133 - type: dcae.relationships.component_contained_in
Vijay3e8e8f72017-10-25 20:41:00 +0000134 target: docker_collector_host
Lusheng Ji3bc77b82017-10-10 20:14:48 +0000135 type: dcae.nodes.DockerContainerForComponentsUsingDmaap