1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
3 # ============LICENSE_START========================================================
4 # =================================================================================
5 # Copyright (C) 2018-2019 NOKIA
6 # Modifications copyright (c) 2020 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
12 # http://www.apache.org/licenses/LICENSE-2.0
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==========================================================
21 tosca_definitions_version: cloudify_dsl_1_3
24 - https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
25 - plugin:k8splugin?version=3.3.0
30 default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.hv-ves.hv-collector-main:1.5.0'
31 service_component_type:
33 default: 'dcae-hv-ves-collector'
36 default: "dcae-hv-ves-collector"
39 description: number of instances
43 description: Network port that the platform service is expecting to expose on the host
47 description: Network port that the platform service exposes in the container
49 kafka_bootstrap_servers:
51 default: 'message-router-kafka:9092'
57 default: 'admin_secret'
60 default: 'HV_VES_PERF3GPP'
64 server_idle_timeout_sec:
67 cbs_request_interval_sec:
73 security_keys_key_store_file:
75 default: '/etc/ves-hv/ssl/cert.jks'
76 security_keys_key_store_password_file:
78 default: '/etc/ves-hv/ssl/jks.pass'
79 security_keys_trust_store_file:
81 default: '/etc/ves-hv/ssl/trust.jks'
82 security_keys_trust_store_password_file:
84 default: '/etc/ves-hv/ssl/trust.pass'
88 service_component_name_override:
90 default: "dcae-hv-ves-collector"
91 external_cert_ca_name:
93 description: Name of Certificate Authority configured on CertService side.
95 external_cert_common_name:
97 description: Common name which should be present in certificate.
98 default: "dcae-hv-ves-collector"
101 description: "List of Subject Alternative Names (SANs) which should be present
102 in certificate. Delimiter - : Should contain common_name value and other FQDNs
103 under which given component is accessible."
104 default: "dcae-hv-ves-collector:hv-ves-collector:hv-ves"
105 external_cert_use_external_tls:
107 description: Flag to indicate external tls enable/disable.
112 cloudify.interfaces.lifecycle:
116 JAVA_OPTS: { concat: [ '-Dlogback.configurationFile=/etc/ONAP/', { get_input: service_component_type }, '/logback.xml' ] }
119 logLevel: { get_input: log_level }
120 server.idleTimeoutSec: { get_input: server_idle_timeout_sec }
121 server.listenPort: { get_input: container_port }
122 cbs.requestIntervalSec: { get_input: cbs_request_interval_sec}
123 security.sslDisable: { get_input: security_ssl_disable }
124 security.keys.keyStoreFile: { get_input: security_keys_key_store_file }
125 security.keys.keyStorePasswordFile: { get_input: security_keys_key_store_password_file }
126 security.keys.trustStoreFile: { get_input: security_keys_trust_store_file }
127 security.keys.trustStorePasswordFile: { get_input: security_keys_trust_store_password_file }
132 username: { get_input: kafka_username }
133 password: { get_input: kafka_password }
135 bootstrap_servers: { get_input: kafka_bootstrap_servers }
136 topic_name: { get_input: perf3gpp_kafka_topic }
140 script: "/opt/ves-hv-collector/healthcheck.sh"
144 - { concat: [ { get_input: container_port }, ':', { get_input: host_port } ] }
145 image: { get_input: tag_version }
146 replicas: { get_input: replicas }
147 service_component_type: { get_input: service_component_type }
148 service_id: { get_input: service_id }
149 service_component_name_override: { get_input: service_component_name_override }
151 log_directory: { concat: [ '/var/log/ONAP/', { get_input: service_component_type } ] }
153 cert_directory: '/etc/ves-hv/ssl'
154 use_tls: { get_input: use_tls }
156 external_cert_directory: '/etc/ves-hv/ssl'
158 get_input: external_cert_use_external_tls
161 get_input: external_cert_ca_name
162 external_certificate_parameters:
164 get_input: external_cert_common_name
166 get_input: external_cert_sans
167 type: dcae.nodes.ContainerizedServiceComponent