2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2019-2020 Nordix Foundation.
4 # Copyright (C) 2020 Nokia
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the 'License');
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an 'AS IS' BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
22 tosca_definitions_version: cloudify_dsl_1_3
25 - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
26 - plugin:k8splugin?version=3.4.3
27 - plugin:dmaap?version=1.5.0
32 description: PM Mapper filter on measInfo, measInfoId, measType, instanceId
33 default: "{ \"filters\":[] }"
36 description: Option to turn on HTTP connections
40 description: Docker image to be used
41 default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.5.0'
44 description: Number of instances
48 default: 'bulk_pm_feed'
51 default: 'PERFORMANCE_MEASUREMENTS'
54 description: Client role to request secure access to topic
55 default: 'org.onap.dcae.pmPublisher'
58 description: Client id for given AAF client
59 default: 'dcae@dcae.onap.org'
62 description: Password for AAF client provided as client_id
63 default: 'demo123456!'
66 description: DMAAP Data Router user name
70 description: DMAAP Data Router password
74 description: DCAE location for the subscriber, used to set up routing
75 default: 'san-francisco'
76 pm_mapper_service_protocol:
78 description: PM Mapper protocol
80 pm_mapper_service_port:
82 description: PM Mapper host port
84 dmaap_dr_service_host:
86 description: DMAAP Data Router host address
87 default: 'dmaap-dr-node'
88 dmaap_dr_service_port:
90 description: DMAAP Data Router host port
92 dmaap_mr_service_protocol:
94 description: DMAAP Message Router protocol
96 dmaap_mr_service_host:
98 description: DMAAP Message Router host address
99 default: 'message-router'
100 dmaap_mr_service_port:
102 description: DMAAP Message Router host port
119 type: dcaegen2.nodes.Feed
121 feed_name: { get_input: feed_name }
125 type: dcaegen2.nodes.Topic
127 topic_name: { get_input: topic_name }
130 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
132 cloudify.interfaces.lifecycle:
140 - type: dcaegen2.relationships.subscribe_to_files
142 - type: dcaegen2.relationships.publish_events
146 service_component_type: 'dcae-pm-mapper'
147 service_component_name_override: 'dcae-pm-mapper'
149 trust_store_path: '/opt/app/pm-mapper/etc/cert/trust.jks'
150 trust_store_pass_path: '/opt/app/pm-mapper/etc/cert/trust.pass'
151 key_store_path: '/opt/app/pm-mapper/etc/cert/cert.jks'
152 key_store_pass_path: '/opt/app/pm-mapper/etc/cert/jks.pass'
153 pm-mapper-filter: { get_input: filter }
154 enable_http: { get_input: enable_http }
155 dmaap_dr_delete_endpoint: { concat: ['https://',{ get_input: dmaap_dr_service_host },':',{ get_input: dmaap_dr_service_port },'/delete'] }
156 aaf_identity: { get_input: client_id }
157 aaf_password: { get_input: client_password }
161 dmaap_info: <<pm-feed>>
165 dmaap_info: <<pm-topic>>
168 cpu: { get_input: cpu_limit }
169 memory: { get_input: memory_limit }
171 cpu: { get_input: cpu_request }
172 memory: { get_input: memory_request }
175 endpoint: /healthcheck
181 location: { get_input: dcae_location }
182 client_role: { get_input: client_role }
186 location: { get_input: dcae_location }
187 client_role: { get_input: client_role }
188 username: { get_input: dmaap_dr_username }
189 password: { get_input: dmaap_dr_password }
190 scheme: { get_input: pm_mapper_service_protocol }
196 image: { get_input: tag_version }
197 replicas: { get_input: replicas }
199 log_directory: '/var/log/ONAP/dcaegen2/services/pm-mapper'
201 cert_directory: '/opt/app/pm-mapper/etc/cert/'