Move PAP database provider to spring boot default
[policy/pap.git] / main / src / main / resources / application.yaml
1 spring:
2   security:
3     user:
4       name: policyadmin
5       password: zb!XztG34
6   http:
7     converters:
8       preferred-json-mapper: gson
9   datasource:
10     url: jdbc:mariadb://mariadb:3306/policyadmin
11     driverClassName: org.mariadb.jdbc.Driver
12     username: policy_user
13     password: policy_user
14   jpa:
15     properties:
16       hibernate:
17         dialect: org.hibernate.dialect.MariaDB103Dialect
18     hibernate:
19       ddl-auto: none
20       naming:
21         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
22         implicit-strategy: org.onap.policy.pap.main.CustomImplicitNamingStrategy
23
24 server:
25   port: 6969
26
27 pap:
28   name: PapGroup
29   pdpParameters:
30     heartBeatMs: 120000
31     updateParameters:
32       maxRetryCount: 1
33       maxWaitMs: 30000
34     stateChangeParameters:
35       maxRetryCount: 1
36       maxWaitMs: 30000
37   savePdpStatisticsInDb: true
38   topicParameterGroup:
39     topicSources:
40     - topic: POLICY-PDP-PAP
41       servers:
42       - message-router
43       topicCommInfrastructure: dmaap
44       fetchTimeout: 15000
45     - topic: POLICY-HEARTBEAT
46       effectiveTopic: POLICY-PDP-PAP
47       consumerGroup: policy-pap
48       servers:
49       - message-router
50       topicCommInfrastructure: dmaap
51       fetchTimeout: 15000
52     topicSinks:
53     - topic: POLICY-PDP-PAP
54       servers:
55       - message-router
56       topicCommInfrastructure: dmaap
57     - topic: POLICY-NOTIFICATION
58       servers:
59       - message-router
60       topicCommInfrastructure: dmaap
61   healthCheckRestClientParameters:
62   - clientName: api
63     hostname: policy-api
64     port: 6969
65     userName: policyadmin
66     password: zb!XztG34
67     useHttps: true
68     basePath: policy/api/v1/healthcheck
69   - clientName: distribution
70     hostname: policy-distribution
71     port: 6969
72     userName: healthcheck
73     password: zb!XztG34
74     useHttps: true
75     basePath: healthcheck
76   - clientName: dmaap
77     hostname: message-router
78     port: 3905
79     useHttps: true
80     basePath: topics
81
82 management:
83   endpoints:
84     web:
85       base-path: /
86       exposure:
87         include: health, metrics, prometheus
88       path-mapping.prometheus: metrics