1 # -*- indent-tabs-mode: nil -*- # vi: set expandtab:
3 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2018-2020 AT&T
6 # Copyright (c) 2018-2020 NOKIA
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.4.3,<4.0.0
29 default: "https://aai.onap.svc.cluster.local:8443/aai/v23/network/pnfs/pnf"
32 default: "https://aai.onap.svc.cluster.local:8443/aai/v23"
35 default: "aai.onap.svc.cluster.local"
41 description: aai user name
45 description: aai password
49 default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY"
50 dmaap_vesPnfRegOutput_url:
52 default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT"
55 default: "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE"
58 description: dmap user name
62 description: dmap password
66 default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.7.1"
69 description: number of instances
72 description: port on Kubernetes host where PRH API will be exposed
76 description: Network port that the platform service exposes in the container
78 service_component_type:
86 description: enable certificate base connection with AAI and DMaap
88 service_component_name_override:
95 dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }
96 dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
97 dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
98 dmaap.dmaapConsumerConfiguration.consumerId: "c12"
99 dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
100 dmaap.dmaapConsumerConfiguration.timeoutMs: -1
101 dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }
102 dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
103 dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
104 dmaap.dmaapUpdateProducerConfiguration.dmaapUserName: { get_input: dmaap_user }
105 dmaap.dmaapUpdateProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
106 dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json"
107 aai.aaiClientConfiguration.pnfUrl: { get_input: pnfUrl }
108 aai.aaiClientConfiguration.baseUrl: { get_input: baseUrl }
109 aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }
110 aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }
111 aai.aaiClientConfiguration.aaiProtocol: "https"
112 aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }
113 aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }
114 aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
115 aai.aaiClientConfiguration.aaiBasePath: "/aai/v23"
116 aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
117 aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}"
118 aai.aaiClientConfiguration.aaiHeaders:
120 X-TransactionId: "9999"
121 Accept: "application/json"
123 Authorization: "Basic QUFJOkFBSQ=="
124 security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks"
125 security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass"
126 security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks"
127 security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass"
128 security.enableAaiCertAuth: { get_input: secureEnableCert }
129 security.enableDmaapCertAuth: { get_input: secureEnableCert }
132 type: "message_router"
134 topic_url: {get_input: dmaap_pnfUpdate_url }
136 type: "message_router"
138 topic_url: { get_input: dmaap_pnfReady_url }
141 type: "message_router"
143 topic_url: { get_input: dmaap_vesPnfRegOutput_url }
151 - { concat: [ { get_input: container_port }, ':', { get_input: host_port } ] }
153 { get_input: tag_version }
154 replicas: {get_input: replicas}
155 service_component_type: { get_input: service_component_type }
156 service_id: { get_input: service_id }
157 service_component_name_override: { get_input: service_component_name_override }
159 log_directory: "/opt/app/prh/logs"
161 cert_directory: '/opt/app/prh/etc/cert'
163 type: dcae.nodes.ContainerizedServiceComponent