tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | # ============LICENSE_START=======================================================
|
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 2 | # Copyright (C) 2021 Pantheon.tech
|
puthuparambil.aditya | 395795e | 2022-05-27 10:59:19 +0100 | [diff] [blame] | 3 | # Modifications Copyright (C) 2021-2022 Bell Canada
|
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 4 | # Modifications Copyright (C) 2021-2023 Nordix Foundation
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 5 | # ================================================================================
|
| 6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
| 7 | # you may not use this file except in compliance with the License.
|
| 8 | # You may obtain a copy of the License at
|
| 9 | #
|
| 10 | # http://www.apache.org/licenses/LICENSE-2.0
|
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 11 | #
|
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 12 | # Unless required by applicable law or agreed to in writing, software
|
| 13 | # distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 | # See the License for the specific language governing permissions and
|
| 16 | # limitations under the License.
|
| 17 | #
|
| 18 | # SPDX-License-Identifier: Apache-2.0
|
| 19 | # ============LICENSE_END=========================================================
|
| 20 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 21 | server:
|
puthuparambil.aditya | 52cff68 | 2020-11-05 11:34:41 +0000 | [diff] [blame] | 22 | port: 8080
|
Ruslan Kashapov | 708fd66 | 2021-01-21 09:37:05 +0200 | [diff] [blame] | 23 |
|
| 24 | rest:
|
| 25 | api:
|
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 26 | cps-base-path: /cps/api
|
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 27 | ncmp-base-path: /ncmp
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 28 | ncmp-inventory-base-path: /ncmpInventory
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 29 |
|
| 30 | spring:
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 31 | main:
|
| 32 | banner-mode: "off"
|
sourabh_sourabh | 01b6012 | 2022-01-21 01:46:12 +0530 | [diff] [blame] | 33 | application:
|
| 34 | name: "cps-application"
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 35 | jpa:
|
JosephKeenan | 42cf9c4 | 2022-10-17 12:48:18 +0100 | [diff] [blame] | 36 | show-sql: false
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 37 | ddl-auto: create
|
| 38 | open-in-view: false
|
| 39 | properties:
|
| 40 | hibernate:
|
| 41 | enable_lazy_load_no_trans: true
|
| 42 | dialect: org.hibernate.dialect.PostgreSQLDialect
|
| 43 |
|
| 44 | datasource:
|
puthuparambil.aditya | 73d5886 | 2022-01-28 13:22:33 +0000 | [diff] [blame] | 45 | url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 46 | username: ${DB_USERNAME}
|
| 47 | password: ${DB_PASSWORD}
|
| 48 | driverClassName: org.postgresql.Driver
|
ToineSiebelink | 8bc84d8 | 2022-08-18 08:43:07 +0100 | [diff] [blame] | 49 | hikari:
|
| 50 | minimumIdle: 5
|
| 51 | maximumPoolSize: 80
|
sourabh_sourabh | 86b5cee | 2022-09-08 12:35:04 +0100 | [diff] [blame] | 52 | idleTimeout: 60000
|
| 53 | connectionTimeout: 120000
|
sourabh_sourabh | 89a0d39 | 2022-09-14 10:23:02 +0100 | [diff] [blame] | 54 | leakDetectionThreshold: 30000
|
ToineSiebelink | 8bc84d8 | 2022-08-18 08:43:07 +0100 | [diff] [blame] | 55 | pool-name: CpsDatabasePool
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 56 |
|
Claudio David Gasparini | 1b8a4dd | 2021-01-13 19:12:25 +0100 | [diff] [blame] | 57 | cache:
|
| 58 | type: caffeine
|
| 59 | cache-names: yangSchema
|
| 60 | caffeine:
|
| 61 | spec: maximumSize=10000,expireAfterAccess=10m
|
puthuparambil.aditya | 495ae8e | 2021-02-23 15:51:00 +0000 | [diff] [blame] | 62 |
|
| 63 | liquibase:
|
| 64 | change-log: classpath:changelog/changelog-master.yaml
|
| 65 | labels: ${LIQUIBASE_LABELS}
|
| 66 |
|
niamhcore | 49a609c | 2021-04-07 11:35:19 +0100 | [diff] [blame] | 67 | servlet:
|
| 68 | multipart:
|
| 69 | enabled: true
|
| 70 | max-file-size: 100MB
|
| 71 | max-request-size: 100MB
|
| 72 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 73 | kafka:
|
| 74 | bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
|
| 75 | security:
|
| 76 | protocol: PLAINTEXT
|
| 77 | producer:
|
| 78 | value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
|
| 79 | client-id: cps-core
|
JosephKeenan | f31c7f8 | 2022-05-24 18:59:25 +0100 | [diff] [blame] | 80 | consumer:
|
| 81 | group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
|
| 82 | key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
|
| 83 | value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
|
| 84 | properties:
|
| 85 | spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
|
| 86 | spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
|
JosephKeenan | f31c7f8 | 2022-05-24 18:59:25 +0100 | [diff] [blame] | 87 | spring.json.use.type.headers: false
|
mpriyank | 5d3ed6f | 2022-05-26 20:25:40 +0100 | [diff] [blame] | 88 |
|
| 89 | jackson:
|
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 90 | default-property-inclusion: NON_NULL
|
| 91 | serialization:
|
| 92 | FAIL_ON_EMPTY_BEANS: false
|
sourabh_sourabh | 86b5cee | 2022-09-08 12:35:04 +0100 | [diff] [blame] | 93 | sql:
|
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 94 | init:
|
| 95 | mode: ALWAYS
|
JosephKeenan | f31c7f8 | 2022-05-24 18:59:25 +0100 | [diff] [blame] | 96 | app:
|
| 97 | ncmp:
|
| 98 | async-m2m:
|
| 99 | topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
|
seanbeirne | 632942a | 2022-12-06 11:12:18 +0000 | [diff] [blame] | 100 | avc:
|
| 101 | subscription-topic: ${NCMP_CM_AVC_SUBSCRIPTION:cm-avc-subscription}
|
mpriyank | bdf6095 | 2023-03-21 09:59:00 +0000 | [diff] [blame] | 102 | cm-events-topic: ${NCMP_CM_EVENTS_TOPIC:cm-events}
|
mpriyank | a6fa6c3 | 2022-07-11 12:15:55 +0100 | [diff] [blame] | 103 | lcm:
|
mpriyank | c2c4f5f | 2022-06-02 11:27:55 +0100 | [diff] [blame] | 104 | events:
|
mpriyank | a6fa6c3 | 2022-07-11 12:15:55 +0100 | [diff] [blame] | 105 | topic: ${LCM_EVENTS_TOPIC:ncmp-events}
|
mpriyank | f0d50b6 | 2023-03-08 15:29:57 +0000 | [diff] [blame] | 106 | dmi:
|
| 107 | cm-events:
|
| 108 | topic: ${DMI_CM_EVENTS_TOPIC:dmi-cm-events}
|
JosephKeenan | 1c90848 | 2022-06-16 16:19:09 +0100 | [diff] [blame] | 109 |
|
seanbeirne | 7d25644 | 2023-01-13 17:13:25 +0000 | [diff] [blame] | 110 |
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 111 | notification:
|
JosephKeenan | 1c90848 | 2022-06-16 16:19:09 +0100 | [diff] [blame] | 112 | enabled: true
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 113 | data-updated:
|
Bruno Sakoto | 8db6414 | 2021-08-20 18:59:14 -0400 | [diff] [blame] | 114 | topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 115 | filters:
|
Renu Kumari | 86c74c7 | 2021-08-19 13:11:00 -0400 | [diff] [blame] | 116 | enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
|
Renu Kumari | cd04807 | 2021-09-02 10:30:09 -0400 | [diff] [blame] | 117 | async:
|
Renu Kumari | cd04807 | 2021-09-02 10:30:09 -0400 | [diff] [blame] | 118 | executor:
|
ToineSiebelink | c51d4f6 | 2022-08-18 08:50:06 +0100 | [diff] [blame] | 119 | core-pool-size: 2
|
| 120 | max-pool-size: 10
|
Renu Kumari | cd04807 | 2021-09-02 10:30:09 -0400 | [diff] [blame] | 121 | queue-capacity: 500
|
| 122 | wait-for-tasks-to-complete-on-shutdown: true
|
| 123 | thread-name-prefix: Async-
|
JosephKeenan | f31c7f8 | 2022-05-24 18:59:25 +0100 | [diff] [blame] | 124 | time-out-value-in-ms: 2000
|
Renu Kumari | ff52b94 | 2021-05-27 23:16:32 -0400 | [diff] [blame] | 125 |
|
JosephKeenan | 2472e61 | 2021-06-23 14:15:52 +0100 | [diff] [blame] | 126 | springdoc:
|
| 127 | swagger-ui:
|
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 128 | disable-swagger-default-url: true
|
| 129 | urlsPrimaryName: cps-core
|
| 130 | urls:
|
| 131 | - name: cps-core
|
| 132 | url: /api-docs/cps-core/openapi.yaml
|
| 133 | - name: cps-ncmp
|
| 134 | url: /api-docs/cps-ncmp/openapi.yaml
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 135 | - name: cps-ncmp-inventory
|
| 136 | url: /api-docs/cps-ncmp/openapi-inventory.yaml
|
| 137 |
|
Renu Kumari | 8f01bf6 | 2021-08-17 14:06:53 -0400 | [diff] [blame] | 138 |
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 139 | security:
|
| 140 | # comma-separated uri patterns which do not require authorization
|
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 141 | permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 142 | auth:
|
Renu Kumari | 3da5207 | 2021-04-14 10:14:13 -0400 | [diff] [blame] | 143 | username: ${CPS_USERNAME}
|
| 144 | password: ${CPS_PASSWORD}
|
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 145 |
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 146 | # Actuator
|
| 147 | management:
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 148 | server:
|
| 149 | port: 8081
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 150 | endpoints:
|
| 151 | web:
|
| 152 | base-path: /manage
|
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 153 | exposure:
|
| 154 | include: info,health,loggers,prometheus
|
Ruslan Kashapov | f4d1c98 | 2020-10-29 11:39:31 +0200 | [diff] [blame] | 155 | endpoint:
|
| 156 | health:
|
| 157 | show-details: always
|
| 158 | # kubernetes probes: liveness and readiness
|
| 159 | probes:
|
| 160 | enabled: true
|
| 161 |
|
Rishi Chail | b220d74 | 2020-09-16 15:23:53 +0100 | [diff] [blame] | 162 | logging:
|
sourabh_sourabh | ac5ae3e | 2022-04-22 22:47:41 +0100 | [diff] [blame] | 163 | format: json
|
Rishi Chail | 8af414a | 2020-10-08 12:33:33 +0100 | [diff] [blame] | 164 | level:
|
| 165 | org:
|
| 166 | springframework: INFO
|
sourabh_sourabh | 01b6012 | 2022-01-21 01:46:12 +0530 | [diff] [blame] | 167 | onap:
|
| 168 | cps: INFO
|
mpriyank | 107dbd8 | 2022-09-19 15:56:39 +0100 | [diff] [blame] | 169 | ncmp:
|
| 170 | dmi:
|
| 171 | auth:
|
| 172 | username: ${DMI_USERNAME}
|
| 173 | password: ${DMI_PASSWORD}
|
| 174 | api:
|
| 175 | base-path: dmi
|
DylanB95EST | 324eb16 | 2022-05-16 10:45:56 +0100 | [diff] [blame] | 176 |
|
mpriyank | 107dbd8 | 2022-09-19 15:56:39 +0100 | [diff] [blame] | 177 | timers:
|
| 178 | advised-modules-sync:
|
| 179 | sleep-time-ms: 5000
|
| 180 | locked-modules-sync:
|
| 181 | sleep-time-ms: 300000
|
| 182 | cm-handle-data-sync:
|
| 183 | sleep-time-ms: 30000
|
DylanB95EST | 324eb16 | 2022-05-16 10:45:56 +0100 | [diff] [blame] | 184 |
|
mpriyank | 107dbd8 | 2022-09-19 15:56:39 +0100 | [diff] [blame] | 185 | modules-sync-watchdog:
|
| 186 | async-executor:
|
mpriyank | 692f1ce | 2023-03-10 10:07:19 +0000 | [diff] [blame] | 187 | parallelism-level: 10
|
| 188 |
|
| 189 | model-loader:
|
mpriyank | d64fa34 | 2023-04-24 12:51:24 +0100 | [diff] [blame^] | 190 | subscription: false
|
| 191 |
|
| 192 | # Custom Hazelcast Config.
|
| 193 | hazelcast:
|
| 194 | mode:
|
| 195 | kubernetes:
|
| 196 | enabled: ${HAZELCAST_MODE_KUBERNETES_ENABLED:false}
|
| 197 | service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"} |