blob: d2b53071a6e3a3b00039d0dac43b60c25fe1218c [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001# ============LICENSE_START=======================================================
halil.cakal8d8ec862023-03-14 11:24:26 +00002# Copyright (C) 2021-2023 Nordix Foundation
puthuparambil.aditya08fe9712021-07-13 11:52:13 +01003# Modifications Copyright (C) 2021 Bell Canada.
DylanB95ESTb5a23832021-06-02 19:45:46 +01004# ================================================================================
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
lukegleesonb208aeb2021-07-08 16:48:15 +010010#
DylanB95ESTb5a23832021-06-02 19:45:46 +010011# 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.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20server:
21 port: 8080
22
tragait2270d762021-07-08 15:42:19 +010023dmi:
24 service:
tragaitfa11e9c2021-09-14 13:47:52 +010025 url: ${DMI_SERVICE_URL}
halil.cakal8d8ec862023-03-14 11:24:26 +000026 name: ${DMI_SERVICE_NAME:ncmp-dmi-plugin}
tragait2270d762021-07-08 15:42:19 +010027
DylanB95ESTb5a23832021-06-02 19:45:46 +010028rest:
29 api:
JosephKeenane935cd22021-08-31 15:57:56 +010030 dmi-base-path: /dmi
DylanB95ESTb5a23832021-06-02 19:45:46 +010031
32security:
halil.cakal56b84062023-10-25 12:02:49 +010033 permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
DylanB95ESTb5a23832021-06-02 19:45:46 +010034 auth:
tragaitfa11e9c2021-09-14 13:47:52 +010035 username: ${DMI_USERNAME}
36 password: ${DMI_PASSWORD}
shivasubedi55500c32021-06-23 16:31:02 +010037
JosephKeenanbe383b42022-03-23 15:12:53 +000038# When updating to sprinboot 2.6.4 an exception would occur when starting the container
39# "Failed to start bean 'documentationPluginsBootstrapper'.
40# This is a known issue with springfox and springboot introduced in 2.6.x:
41# https://github.com/springfox/springfox/issues/3462
42spring:
sourabh_sourabhdf26bc32022-05-04 11:38:52 +010043 application:
44 name: ncmp-dmi-plugin
JosephKeenanbe383b42022-03-23 15:12:53 +000045 mvc:
46 pathmatch:
47 matching-strategy: ANT_PATH_MATCHER
mpriyank78e1d062022-04-08 15:12:22 +053048 kafka:
JosephKeenan2cd8b982022-05-23 15:43:05 +010049 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
mpriyank78e1d062022-04-08 15:12:22 +053050 security:
51 protocol: PLAINTEXT
52 producer:
53 key-serializer: org.apache.kafka.common.serialization.StringSerializer
mpriyanka9b8d9d2023-06-20 13:42:31 +010054 value-serializer: io.cloudevents.kafka.CloudEventSerializer
JosephKeenan2cd8b982022-05-23 15:43:05 +010055 client-id: ncmp-dmi-plugin
halil.cakal8d8ec862023-03-14 11:24:26 +000056 consumer:
57 group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
58 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
59 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
60 properties:
61 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
mpriyanka9b8d9d2023-06-20 13:42:31 +010062 spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer
halil.cakal8d8ec862023-03-14 11:24:26 +000063 spring.json.use.type.headers: false
mpriyank78e1d062022-04-08 15:12:22 +053064
mpriyanka9b8d9d2023-06-20 13:42:31 +010065 jackson:
66 serialization:
67 FAIL_ON_EMPTY_BEANS: false
68
mpriyank78e1d062022-04-08 15:12:22 +053069app:
70 ncmp:
JosephKeenan2cd8b982022-05-23 15:43:05 +010071 async:
mpriyank78e1d062022-04-08 15:12:22 +053072 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
halil.cakal8d8ec862023-03-14 11:24:26 +000073 dmi:
74 avc:
75 subscription-topic: ${DMI_CM_AVC_SUBSCRIPTION:ncmp-dmi-cm-avc-subscription-${dmi.service.name}}
76 subscription-response-topic: ${DMI_CM_AVC_SUBSCRIPTION_RESPONSE:dmi-ncmp-cm-avc-subscription}
JosephKeenanbe383b42022-03-23 15:12:53 +000077
JosephKeenan2cd8b982022-05-23 15:43:05 +010078notification:
79 async:
80 executor:
81 time-out-value-in-ms: 2000
82
shivasubedi55500c32021-06-23 16:31:02 +010083# Actuator
84management:
85 endpoints:
86 web:
shivasubedi55500c32021-06-23 16:31:02 +010087 exposure:
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010088 include: info,health,loggers,prometheus
shivasubedi55500c32021-06-23 16:31:02 +010089 endpoint:
90 health:
91 show-details: always
92 # kubernetes probes: liveness and readiness
93 probes:
94 enabled: true
niamhcore71a61bb2021-07-06 10:32:17 +010095 loggers:
96 enabled: true
97
98cps-core:
99 baseUrl: http://${CPS_CORE_HOST}:${CPS_CORE_PORT}
Renu Kumari4d39a762021-10-08 10:48:00 -0400100 dmiRegistrationUrl : /ncmpInventory/v1/ch
niamhcore71a61bb2021-07-06 10:32:17 +0100101 auth:
102 username: ${CPS_CORE_USERNAME}
tragait7c4a9aa2021-07-19 13:46:37 +0100103 password: ${CPS_CORE_PASSWORD}
104
105sdnc:
106 baseUrl: http://${SDNC_HOST}:${SDNC_PORT}
107 topologyId: ${SDNC_TOPOLOGY_ID:topology-netconf}
108 auth:
109 username: ${SDNC_USERNAME}
110 password: ${SDNC_PASSWORD}
tragait2270d762021-07-08 15:42:19 +0100111
112logging:
sourabh_sourabhdf26bc32022-05-04 11:38:52 +0100113 format: json
tragait2270d762021-07-08 15:42:19 +0100114 level:
115 org.springframework: ERROR
116 org.onap.cps: DEBUG
117 pattern:
118 console: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
119 file: "%d %p %c{1.} [%t] %m%n"
120 file: dmi.log
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000121
122springdoc:
123 swagger-ui:
124 disable-swagger-default-url: true
125 urlsPrimaryName: query
126 urls:
127 - name: query
halil.cakal56b84062023-10-25 12:02:49 +0100128 url: /api-docs/openapi.yaml