a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 1 | spring: |
| 2 | security: |
| 3 | user: |
| 4 | name: policyadmin |
| 5 | password: zb!XztG34 |
| 6 | http: |
| 7 | converters: |
| 8 | preferred-json-mapper: gson |
adheli.tavares | 3e2977e | 2022-02-07 08:52:04 +0000 | [diff] [blame] | 9 | datasource: |
adheli.tavares | d802fd9 | 2024-08-15 12:39:19 +0100 | [diff] [blame] | 10 | url: jdbc:postgresql://postgres:5432/policyadmin |
| 11 | driverClassName: org.postgresql.Driver |
adheli.tavares | 3e2977e | 2022-02-07 08:52:04 +0000 | [diff] [blame] | 12 | username: policy_user |
| 13 | password: policy_user |
| 14 | jpa: |
adheli.tavares | 3e2977e | 2022-02-07 08:52:04 +0000 | [diff] [blame] | 15 | hibernate: |
| 16 | ddl-auto: none |
| 17 | naming: |
| 18 | physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl |
Ram Krishna Verma | 9f43149 | 2022-02-16 12:16:50 -0500 | [diff] [blame] | 19 | implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 20 | |
| 21 | server: |
| 22 | port: 6969 |
liamfallon | c49f64d | 2023-01-19 15:30:30 +0000 | [diff] [blame] | 23 | servlet: |
| 24 | context-path: /policy/pap/v1 |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 25 | ssl: |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 26 | enabled: false |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 27 | |
| 28 | pap: |
| 29 | name: PapGroup |
adheli.tavares | 4559dcd | 2022-11-23 11:01:10 +0000 | [diff] [blame] | 30 | topic: |
rameshiyer27 | f2e4da7 | 2024-01-13 21:26:09 +0000 | [diff] [blame] | 31 | pdp-pap.name: policy-pdp-pap |
| 32 | notification.name: policy-notification |
| 33 | heartbeat.name: policy-heartbeat |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 34 | pdpParameters: |
| 35 | heartBeatMs: 120000 |
| 36 | updateParameters: |
| 37 | maxRetryCount: 1 |
| 38 | maxWaitMs: 30000 |
| 39 | stateChangeParameters: |
| 40 | maxRetryCount: 1 |
| 41 | maxWaitMs: 30000 |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 42 | savePdpStatisticsInDb: true |
| 43 | topicParameterGroup: |
| 44 | topicSources: |
adheli.tavares | 4559dcd | 2022-11-23 11:01:10 +0000 | [diff] [blame] | 45 | - topic: ${pap.topic.pdp-pap.name} |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 46 | servers: |
rameshiyer27 | f2e4da7 | 2024-01-13 21:26:09 +0000 | [diff] [blame] | 47 | - kafka:9092 |
| 48 | topicCommInfrastructure: kafka |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 49 | useHttps: false |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 50 | fetchTimeout: 15000 |
adheli.tavares | 4559dcd | 2022-11-23 11:01:10 +0000 | [diff] [blame] | 51 | - topic: ${pap.topic.heartbeat.name} |
| 52 | effectiveTopic: ${pap.topic.pdp-pap.name} |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 53 | consumerGroup: policy-pap |
| 54 | servers: |
rameshiyer27 | f2e4da7 | 2024-01-13 21:26:09 +0000 | [diff] [blame] | 55 | - kafka:9092 |
| 56 | topicCommInfrastructure: kafka |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 57 | useHttps: false |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 58 | fetchTimeout: 15000 |
| 59 | topicSinks: |
adheli.tavares | 4559dcd | 2022-11-23 11:01:10 +0000 | [diff] [blame] | 60 | - topic: ${pap.topic.pdp-pap.name} |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 61 | servers: |
rameshiyer27 | f2e4da7 | 2024-01-13 21:26:09 +0000 | [diff] [blame] | 62 | - kafka:9092 |
| 63 | topicCommInfrastructure: kafka |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 64 | useHttps: false |
adheli.tavares | 4559dcd | 2022-11-23 11:01:10 +0000 | [diff] [blame] | 65 | - topic: ${pap.topic.notification.name} |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 66 | servers: |
rameshiyer27 | f2e4da7 | 2024-01-13 21:26:09 +0000 | [diff] [blame] | 67 | - kafka:9092 |
| 68 | topicCommInfrastructure: kafka |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 69 | useHttps: false |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 70 | healthCheckRestClientParameters: |
| 71 | - clientName: api |
| 72 | hostname: policy-api |
| 73 | port: 6969 |
| 74 | userName: policyadmin |
| 75 | password: zb!XztG34 |
liamfallon | faac45b | 2022-09-01 12:05:47 +0100 | [diff] [blame] | 76 | useHttps: false |
a.sreekumar | 794b0c9 | 2021-12-10 17:17:20 +0000 | [diff] [blame] | 77 | basePath: policy/api/v1/healthcheck |
| 78 | |
| 79 | management: |
| 80 | endpoints: |
| 81 | web: |
| 82 | base-path: / |
| 83 | exposure: |
| 84 | include: health, metrics, prometheus |
adheli.tavares | 43a40e1 | 2023-07-18 12:04:20 +0100 | [diff] [blame] | 85 | path-mapping: |
| 86 | -metrics: plain-metrics |
| 87 | -prometheus: metrics |
adheli.tavares | d802fd9 | 2024-08-15 12:39:19 +0100 | [diff] [blame] | 88 | |
| 89 | --- |
| 90 | |
| 91 | spring: |
| 92 | config: |
| 93 | activate: |
| 94 | on-profile: mariadb |
| 95 | datasource: |
| 96 | url: jdbc:mariadb://mariadb:3306/policyadmin |
| 97 | driverClassName: org.mariadb.jdbc.Driver |
| 98 | username: policy_user |
| 99 | password: policy_user |
| 100 | |
| 101 | database: |
| 102 | name: PolicyProviderParameterGroup |
| 103 | implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl |
| 104 | driver: org.mariadb.jdbc.Driver |
| 105 | url: jdbc:mariadb://mariadb:3306/policyadmin |
| 106 | user: policy_user |
| 107 | password: policy_user |
| 108 | persistenceUnit: PolicyDb |