blob: 17bea878f70fdb41cbc588b1bddb7b0e81496809 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# -*- indent-tabs-mode: nil -*- # vi: set expandtab:
#
# ============LICENSE_START====================================================
# =============================================================================
# Copyright (c) 2018 AT&T, NOKIA
# =============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END======================================================
tosca_definitions_version: cloudify_dsl_1_3
imports:
- "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
- {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.3/k8splugin_types.yaml
inputs:
aaiEnrichmentHost:
type: string
default: "aai.onap.svc.cluster.local"
aaiEnrichmentPort:
type: integer
default: 8443
aaiEnrichmentUser:
type: string
description: aai user name
default: "AAI"
aaiEnrichmentPasswd:
type: string
description: aai password
default: "AAI"
dmaap_host:
type: string
description: dmaap host
default: message-router.onap.svc.cluster.local
dmaap_port:
type: integer
description: dmaap port
default: 3904
dmaap_user:
type: string
description: dmap user name
default: "admin"
dmaap_passwd:
type: string
description: dmap password
default: "admin"
tag_version:
type: string
default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.services.prh.prh-app-server:1.0.0"
replicas:
type: integer
description: number of instances
default: 1
host_port:
description: port on Kubernetes host where PRH API will be exposed
default: 0
node_templates:
prh:
properties:
application_config:
dmaap.dmaapConsumerConfiguration.dmaapHostName: { get_input: dmaap_host }
dmaap.dmaapConsumerConfiguration.dmaapPortNumber: { get_input: dmaap_port }
dmaap.dmaapConsumerConfiguration.dmaapTopicName: "/events/unauthenticated.VES_PNFREG_OUTPUT"
dmaap.dmaapConsumerConfiguration.dmaapProtocol: "http"
dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_user }
dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"
dmaap.dmaapConsumerConfiguration.consumerId: "c12"
dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"
dmaap.dmaapConsumerConfiguration.timeoutMs: -1
dmaap.dmaapConsumerConfiguration.messageLimit: -1
dmaap.dmaapProducerConfiguration.dmaapHostName: { get_input: dmaap_host }
dmaap.dmaapProducerConfiguration.dmaapPortNumber: { get_input: dmaap_port }
dmaap.dmaapProducerConfiguration.dmaapTopicName: "/events/unauthenticated.PNF_READY"
dmaap.dmaapProducerConfiguration.dmaapProtocol: "http"
dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_user }
dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_passwd }
dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json"
aai.aaiClientConfiguration.aaiHost: { get_input: aaiEnrichmentHost }
aai.aaiClientConfiguration.aaiHostPortNumber: { get_input: aaiEnrichmentPort }
aai.aaiClientConfiguration.aaiProtocol: "https"
aai.aaiClientConfiguration.aaiUserName: { get_input: aaiEnrichmentUser }
aai.aaiClientConfiguration.aaiUserPassword: { get_input: aaiEnrichmentPasswd }
aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true
aai.aaiClientConfiguration.aaiBasePath: "/aai/v12"
aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf"
host_port:
{ get_input: host_port }
container_port:
8100
docker_config:
healthcheck:
endpoint: /heartbeat
interval: 15s
timeout: 1s
type: http
image:
get_input: tag_version
replicas: {get_input: replicas}
name: 'dcae-prh'
dns_name: 'dcae-prh'
log_info:
log_directory: "/opt/app/prh/logs"
type: dcae.nodes.ContainerizedPlatformComponent
|