PRH - integration cit cloudify
[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 }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml"
28
29 inputs:
30   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"
36   ves_fault_publish_url:
37     type: string
38     default: "http://10.0.11.1:3904/events/unauthenticated.SEC_FAULT_OUTPUT"
39   ves_measurement_publish_url:
40     type: string
41     default: "http://10.0.11.1:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT"
42   dh_override:
43     type: string
44     default: "component_dockerhost"
45   dh_location_id:
46     type: string
47     default: "zone1"
48   tag_version:
49     type: string
50     default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.1-latest"
51
52 node_templates:
53   docker_collector_host:
54     properties:
55       docker_host_override:
56         get_input: dh_override
57       location_id:
58         get_input: dh_location_id
59     type: dcae.nodes.SelectedDockerHost
60   ves:
61     interfaces:
62       cloudify.interfaces.lifecycle:
63         stop:
64           inputs:
65             cleanup_image: true
66         start:
67           inputs:
68            ports:
69              - '8080:8080'
70     properties:
71       application_config:
72         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
73         collector.inputQueue.maxPending: "8096"
74         collector.keystore.alias: "dynamically generated"
75         collector.keystore.file.location: /opt/app/VESCollector/etc/keystore
76         collector.keystore.passwordfile: /opt/app/VESCollector/etc/passwordfile
77         collector.schema.checkflag: "1"
78         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\"}"
79         collector.service.port: "8080"
80         collector.service.secure.port: "8443"
81         event.transform.flag: "0"
82         header.authflag: "0"
83         header.authlist: "userid1,base64encodepwd1|userid2,base64encodepwd2"
84         services_calls: []
85         streams_publishes:
86             ves_fault:
87               dmaap_info:
88                 topic_url:
89                   get_input: ves_fault_publish_url
90               type: message_router
91             ves_measurement:
92               dmaap_info:
93                 topic_url:
94                   get_input: ves_measurement_publish_url
95               type: message_router
96         tomcat.maxthreads: "200"
97       docker_config:
98         healthcheck:
99           endpoint: /healthcheck
100           interval: 15s
101           timeout: 1s
102           type: http
103       image: 
104         get_input: tag_version
105       service_component_type: dcaegen2-collectors-ves
106     relationships:
107       - type: dcae.relationships.component_contained_in
108         target: docker_collector_host
109     type: dcae.nodes.DockerContainerForComponentsUsingDmaap