blob: 6ad9d58dff464875188b09eb3527efd833c2a128 [file] [log] [blame]
DylanB95ESTb5a23832021-06-02 19:45:46 +01001# ============LICENSE_START=======================================================
mpriyank78e1d062022-04-08 15:12:22 +05302# Copyright (C) 2021-2022 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}
tragait2270d762021-07-08 15:42:19 +010026
DylanB95ESTb5a23832021-06-02 19:45:46 +010027rest:
28 api:
JosephKeenane935cd22021-08-31 15:57:56 +010029 dmi-base-path: /dmi
DylanB95ESTb5a23832021-06-02 19:45:46 +010030
31security:
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010032 permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
DylanB95ESTb5a23832021-06-02 19:45:46 +010033 auth:
tragaitfa11e9c2021-09-14 13:47:52 +010034 username: ${DMI_USERNAME}
35 password: ${DMI_PASSWORD}
shivasubedi55500c32021-06-23 16:31:02 +010036
JosephKeenanbe383b42022-03-23 15:12:53 +000037# When updating to sprinboot 2.6.4 an exception would occur when starting the container
38# "Failed to start bean 'documentationPluginsBootstrapper'.
39# This is a known issue with springfox and springboot introduced in 2.6.x:
40# https://github.com/springfox/springfox/issues/3462
41spring:
sourabh_sourabhdf26bc32022-05-04 11:38:52 +010042 application:
43 name: ncmp-dmi-plugin
JosephKeenanbe383b42022-03-23 15:12:53 +000044 mvc:
45 pathmatch:
46 matching-strategy: ANT_PATH_MATCHER
mpriyank78e1d062022-04-08 15:12:22 +053047 kafka:
JosephKeenan2cd8b982022-05-23 15:43:05 +010048 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
mpriyank78e1d062022-04-08 15:12:22 +053049 security:
50 protocol: PLAINTEXT
51 producer:
52 key-serializer: org.apache.kafka.common.serialization.StringSerializer
53 value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
JosephKeenan2cd8b982022-05-23 15:43:05 +010054 client-id: ncmp-dmi-plugin
mpriyank78e1d062022-04-08 15:12:22 +053055
56app:
57 ncmp:
JosephKeenan2cd8b982022-05-23 15:43:05 +010058 async:
mpriyank78e1d062022-04-08 15:12:22 +053059 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
JosephKeenanbe383b42022-03-23 15:12:53 +000060
JosephKeenan2cd8b982022-05-23 15:43:05 +010061notification:
62 async:
63 executor:
64 time-out-value-in-ms: 2000
65
shivasubedi55500c32021-06-23 16:31:02 +010066# Actuator
67management:
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010068 server:
69 port: 8081
shivasubedi55500c32021-06-23 16:31:02 +010070 endpoints:
71 web:
72 base-path: /manage
73 exposure:
puthuparambil.aditya08fe9712021-07-13 11:52:13 +010074 include: info,health,loggers,prometheus
shivasubedi55500c32021-06-23 16:31:02 +010075 endpoint:
76 health:
77 show-details: always
78 # kubernetes probes: liveness and readiness
79 probes:
80 enabled: true
niamhcore71a61bb2021-07-06 10:32:17 +010081 loggers:
82 enabled: true
83
84cps-core:
85 baseUrl: http://${CPS_CORE_HOST}:${CPS_CORE_PORT}
Renu Kumari4d39a762021-10-08 10:48:00 -040086 dmiRegistrationUrl : /ncmpInventory/v1/ch
niamhcore71a61bb2021-07-06 10:32:17 +010087 auth:
88 username: ${CPS_CORE_USERNAME}
tragait7c4a9aa2021-07-19 13:46:37 +010089 password: ${CPS_CORE_PASSWORD}
90
91sdnc:
92 baseUrl: http://${SDNC_HOST}:${SDNC_PORT}
93 topologyId: ${SDNC_TOPOLOGY_ID:topology-netconf}
94 auth:
95 username: ${SDNC_USERNAME}
96 password: ${SDNC_PASSWORD}
tragait2270d762021-07-08 15:42:19 +010097
98logging:
sourabh_sourabhdf26bc32022-05-04 11:38:52 +010099 format: json
tragait2270d762021-07-08 15:42:19 +0100100 level:
101 org.springframework: ERROR
102 org.onap.cps: DEBUG
103 pattern:
104 console: "%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
105 file: "%d %p %c{1.} [%t] %m%n"
106 file: dmi.log
puthuparambil.aditya1d902262021-11-23 14:53:43 +0000107
108springdoc:
109 swagger-ui:
110 disable-swagger-default-url: true
111 urlsPrimaryName: query
112 urls:
113 - name: query
JosephKeenan2cd8b982022-05-23 15:43:05 +0100114 url: /api-docs/openapi.yaml