DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
halil.cakal | 8d8ec86 | 2023-03-14 11:24:26 +0000 | [diff] [blame] | 2 | # Copyright (C) 2021-2023 Nordix Foundation |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021 Bell Canada. |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 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 |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 10 | # |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 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. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | server: |
| 21 | port: 8080 |
| 22 | |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 23 | dmi: |
| 24 | service: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 25 | url: ${DMI_SERVICE_URL} |
halil.cakal | 8d8ec86 | 2023-03-14 11:24:26 +0000 | [diff] [blame] | 26 | name: ${DMI_SERVICE_NAME:ncmp-dmi-plugin} |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 27 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 28 | rest: |
| 29 | api: |
JosephKeenan | e935cd2 | 2021-08-31 15:57:56 +0100 | [diff] [blame] | 30 | dmi-base-path: /dmi |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 31 | |
| 32 | security: |
halil.cakal | 56b8406 | 2023-10-25 12:02:49 +0100 | [diff] [blame^] | 33 | permit-uri: /actuator/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 34 | auth: |
tragait | fa11e9c | 2021-09-14 13:47:52 +0100 | [diff] [blame] | 35 | username: ${DMI_USERNAME} |
| 36 | password: ${DMI_PASSWORD} |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 37 | |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 38 | # 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 |
| 42 | spring: |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 43 | application: |
| 44 | name: ncmp-dmi-plugin |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 45 | mvc: |
| 46 | pathmatch: |
| 47 | matching-strategy: ANT_PATH_MATCHER |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 48 | kafka: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 49 | bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092} |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 50 | security: |
| 51 | protocol: PLAINTEXT |
| 52 | producer: |
| 53 | key-serializer: org.apache.kafka.common.serialization.StringSerializer |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 54 | value-serializer: io.cloudevents.kafka.CloudEventSerializer |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 55 | client-id: ncmp-dmi-plugin |
halil.cakal | 8d8ec86 | 2023-03-14 11:24:26 +0000 | [diff] [blame] | 56 | 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 |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 62 | spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer |
halil.cakal | 8d8ec86 | 2023-03-14 11:24:26 +0000 | [diff] [blame] | 63 | spring.json.use.type.headers: false |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 64 | |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 65 | jackson: |
| 66 | serialization: |
| 67 | FAIL_ON_EMPTY_BEANS: false |
| 68 | |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 69 | app: |
| 70 | ncmp: |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 71 | async: |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 72 | topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m} |
halil.cakal | 8d8ec86 | 2023-03-14 11:24:26 +0000 | [diff] [blame] | 73 | 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} |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 77 | |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 78 | notification: |
| 79 | async: |
| 80 | executor: |
| 81 | time-out-value-in-ms: 2000 |
| 82 | |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 83 | # Actuator |
| 84 | management: |
| 85 | endpoints: |
| 86 | web: |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 87 | exposure: |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 88 | include: info,health,loggers,prometheus |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 89 | endpoint: |
| 90 | health: |
| 91 | show-details: always |
| 92 | # kubernetes probes: liveness and readiness |
| 93 | probes: |
| 94 | enabled: true |
niamhcore | 71a61bb | 2021-07-06 10:32:17 +0100 | [diff] [blame] | 95 | loggers: |
| 96 | enabled: true |
| 97 | |
| 98 | cps-core: |
| 99 | baseUrl: http://${CPS_CORE_HOST}:${CPS_CORE_PORT} |
Renu Kumari | 4d39a76 | 2021-10-08 10:48:00 -0400 | [diff] [blame] | 100 | dmiRegistrationUrl : /ncmpInventory/v1/ch |
niamhcore | 71a61bb | 2021-07-06 10:32:17 +0100 | [diff] [blame] | 101 | auth: |
| 102 | username: ${CPS_CORE_USERNAME} |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 103 | password: ${CPS_CORE_PASSWORD} |
| 104 | |
| 105 | sdnc: |
| 106 | baseUrl: http://${SDNC_HOST}:${SDNC_PORT} |
| 107 | topologyId: ${SDNC_TOPOLOGY_ID:topology-netconf} |
| 108 | auth: |
| 109 | username: ${SDNC_USERNAME} |
| 110 | password: ${SDNC_PASSWORD} |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 111 | |
| 112 | logging: |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 113 | format: json |
tragait | 2270d76 | 2021-07-08 15:42:19 +0100 | [diff] [blame] | 114 | 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.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 121 | |
| 122 | springdoc: |
| 123 | swagger-ui: |
| 124 | disable-swagger-default-url: true |
| 125 | urlsPrimaryName: query |
| 126 | urls: |
| 127 | - name: query |
halil.cakal | 56b8406 | 2023-10-25 12:02:49 +0100 | [diff] [blame^] | 128 | url: /api-docs/openapi.yaml |