2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2019-2020 Nordix Foundation.
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 tosca_definitions_version: cloudify_dsl_1_3
24 - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
25 - 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml'
26 - 'https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml'
31 description: PM Mapper filter on measInfo, measInfoId, measType, instanceId
32 default: "{ \"filters\":[] }"
35 description: Option to turn on HTTP connections
39 description: Docker image to be used
40 default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:latest'
43 description: Number of instances
47 default: 'bulk_pm_feed'
50 default: 'PERFORMANCE_MEASUREMENTS'
53 description: Client role to request secure access to topic
54 default: 'org.onap.dcae.pmPublisher'
57 description: Client id for given AAF client
58 default: 'dcae@dcae.onap.org'
61 description: Password for AAF client provided as client_id
64 description: DMAAP Data Router user name
68 description: DMAAP Data Router password
72 description: DCAE location for the subscriber, used to set up routing
73 default: 'san-francisco'
74 pm_mapper_service_protocol:
76 description: PM Mapper protocol
78 pm_mapper_service_port:
80 description: PM Mapper host port
82 dmaap_dr_service_host:
84 description: DMAAP Data Router host address
85 default: 'dmaap-dr-node'
86 dmaap_dr_service_port:
88 description: DMAAP Data Router host port
90 dmaap_mr_service_protocol:
92 description: DMAAP Message Router protocol
94 dmaap_mr_service_host:
96 description: DMAAP Message Router host address
97 default: 'message-router'
98 dmaap_mr_service_port:
100 description: DMAAP Message Router host port
117 type: ccsdk.nodes.Feed
119 feed_name: { get_input: feed_name }
123 type: ccsdk.nodes.Topic
125 topic_name: { get_input: topic_name }
128 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
130 cloudify.interfaces.lifecycle:
138 - type: ccsdk.relationships.subscribe_to_files
140 - type: ccsdk.relationships.publish_events
144 service_component_type: 'dcae-pm-mapper'
145 service_component_name_override: 'dcae-pm-mapper'
147 trust_store_path: '/opt/app/pm-mapper/etc/cert/trust.jks'
148 trust_store_pass_path: '/opt/app/pm-mapper/etc/cert/trust.pass'
149 key_store_path: '/opt/app/pm-mapper/etc/cert/cert.jks'
150 key_store_pass_path: '/opt/app/pm-mapper/etc/cert/jks.pass'
151 pm-mapper-filter: { get_input: filter }
152 enable_http: { get_input: enable_http }
153 dmaap_dr_delete_endpoint: { concat: ['https://',{ get_input: dmaap_dr_service_host },':',{ get_input: dmaap_dr_service_port },'/delete'] }
154 aaf_identity: { get_input: client_id }
155 aaf_password: { get_input: client_password }
159 dmaap_info: <<pm-feed>>
163 dmaap_info: <<pm-topic>>
166 cpu: { get_input: cpu_limit }
167 memory: { get_input: memory_limit }
169 cpu: { get_input: cpu_request }
170 memory: { get_input: memory_request }
173 endpoint: /healthcheck
179 location: { get_input: dcae_location }
180 client_role: { get_input: client_role }
184 location: { get_input: dcae_location }
185 client_role: { get_input: client_role }
186 username: { get_input: dmaap_dr_username }
187 password: { get_input: dmaap_dr_password }
188 scheme: { get_input: pm_mapper_service_protocol }
194 image: { get_input: tag_version }
195 replicas: { get_input: replicas }
197 log_directory: '/var/log/ONAP/dcaegen2/services/pm-mapper'
199 cert_directory: '/opt/app/pm-mapper/etc/cert/'