1 # ============LICENSE_START====================================================
2 # =============================================================================
3 # Copyright (C) 2020 China Mobile
4 # =============================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END======================================================
17 #author: Kai Lu (lukai@chinamobile.com)
18 tosca_definitions_version: cloudify_dsl_1_3
20 - "https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml"
21 - plugin:k8splugin?version=3.4.2
28 description: MariaDB URL
29 default: "mariadb-galera"
32 description: MariaDB port
36 description: MariaDB Username
39 description: MariaDB password
41 default: "secretpassword"
44 description: Presto URL
48 description: Presto port
52 description: Presto Username
55 description: Presto password
59 description: des image URL.
61 default: nexus3.onap.org:10003/onap/org.onap.dcaegen2.services.datalake.exposure.service:1.1.0
64 description: dl default des_hostname
68 description: exposed container port
72 description: external port
76 type: dcae.nodes.ContainerizedServiceComponent
78 cloudify.interfaces.lifecycle:
83 - concat: [{get_input: container_port},":",{get_input: host_port}]
86 get_input: mariadb_address
88 get_input: mariadb_port
90 get_input: db_password
92 get_input: presto_address
94 get_input: presto_port
96 get_input: presto_username
98 get_input: presto_password
102 get_input: mariadb_address
104 get_input: mariadb_port
106 get_input: db_password
108 get_input: presto_address
110 get_input: presto_port
112 get_input: presto_username
114 get_input: presto_password
116 get_input: dl_hostname
118 get_input: image_name
124 endpoint: /datalake/v1/exposure
125 service_component_type: 'dcae-des'
126 service_id: 'dcae-des'
127 service_component_name_override: 'dcae-des'