2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2019 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/3.4/types.yaml"
25 - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.5/k8splugin_types.yaml"
30 description: Docker image to be used
31 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:latest"
34 description: Number of instances
38 description: AAF user name
42 description: AAF password
46 description: Client role to request secure access to topic
47 default: "org.onap.dmaap.mr.PM_MAPPER.pub"
50 description: Client id for given AAF client
54 description: DMAAP Data Router user name
58 description: DMAAP Data Router password
62 description: DCAE location for the subscriber, used to set up routing
63 default: "san-francisco"
64 pm_mapper_service_protocol:
66 description: PM Mapper protocol
68 pm_mapper_service_port:
70 description: PM Mapper host port
72 dmaap_dr_service_host:
74 description: DMAAP Data Router host address
75 default: "dmaap-dr-node"
76 dmaap_dr_service_port:
78 description: DMAAP Data Router host port
80 dmaap_mr_service_host:
82 description: DMAAP Message Router host address
84 dmaap_mr_service_port:
86 description: DMAAP Message Router host port
90 description: PM Mapper filter on measInfo, measInfoId, measType, instanceId
91 default: "{ \"filters\":[]}"
94 description: Option to turn on HTTP connections
100 cloudify.interfaces.lifecycle:
109 { get_input: enable_http }
110 trust_store_path: "/opt/app/pm-mapper/etc/cert/trust.jks.b64"
111 trust_store_pass_path: "/opt/app/pm-mapper/etc/cert/trust.pass"
112 key_store_path: "/opt/app/pm-mapper/etc/cert/cert.jks.b64"
113 key_store_pass_path: "/opt/app/pm-mapper/etc/cert/cert.pass"
114 buscontroller_feed_subscription_endpoint:
115 { concat: ["http://", { get_input: dmaap_buscontroller_service_host },
116 ":", { get_input: dmaap_buscontroller_service_port}, "/webapi/dr_subs"]}
118 get_input: dmaap_dr_feed_id
119 dmaap_dr_feed_name: "bulk_pm_feed"
120 dmaap_dr_delete_endpoint:
121 { concat: ["https://", { get_input: dmaap_dr_service_host },
122 ":", { get_input: dmaap_dr_service_port},"/delete"]}
131 get_input: dmaap_dr_username
133 get_input: dmaap_dr_password
135 get_input: dcae_location
138 { concat: [{ get_input: pm_mapper_service_protocol },"://dcae-pm-mapper:",{ get_input: pm_mapper_service_port },"/delivery"]}
142 get_input: aaf_username
144 get_input: aaf_password
149 get_input: client_role
153 { concat: [{ get_input: pm_mapper_service_protocol },"://",{ get_input: dmaap_mr_service_host },
154 ":",{ get_input: dmaap_mr_service_port },"/events/PM_MAPPER"]}
156 get_input: dcae_location
159 endpoint: /healthcheck
164 get_input: tag_version
165 replicas: { get_input: replicas }
166 name: "dcae-pm-mapper"
167 dns_name: "dcae-pm-mapper"
169 log_directory: "/var/log/ONAP/dcaegen2/services/pm-mapper"
171 cert_directory: "/opt/app/pm-mapper/etc/cert/"
173 type: dcae.nodes.ContainerizedPlatformComponent