Create spring repository layer for PAP
[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.MySQL5InnoDBDialect
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   databaseProviderParameters:
38     name: PolicyProviderParameterGroup
39     implementation: org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl
40     databaseDriver: org.mariadb.jdbc.Driver
41     databaseUrl: jdbc:mariadb://mariadb:3306/policyadmin
42     databaseUser: policy_user
43     databasePassword: policy_user
44     persistenceUnit: PolicyDb
45   savePdpStatisticsInDb: true
46   topicParameterGroup:
47     topicSources:
48     - topic: POLICY-PDP-PAP
49       servers:
50       - message-router
51       topicCommInfrastructure: dmaap
52       fetchTimeout: 15000
53     - topic: POLICY-HEARTBEAT
54       effectiveTopic: POLICY-PDP-PAP
55       consumerGroup: policy-pap
56       servers:
57       - message-router
58       topicCommInfrastructure: dmaap
59       fetchTimeout: 15000
60     topicSinks:
61     - topic: POLICY-PDP-PAP
62       servers:
63       - message-router
64       topicCommInfrastructure: dmaap
65     - topic: POLICY-NOTIFICATION
66       servers:
67       - message-router
68       topicCommInfrastructure: dmaap
69   healthCheckRestClientParameters:
70   - clientName: api
71     hostname: policy-api
72     port: 6969
73     userName: policyadmin
74     password: zb!XztG34
75     useHttps: true
76     basePath: policy/api/v1/healthcheck
77   - clientName: distribution
78     hostname: policy-distribution
79     port: 6969
80     userName: healthcheck
81     password: zb!XztG34
82     useHttps: true
83     basePath: healthcheck
84   - clientName: dmaap
85     hostname: message-router
86     port: 3905
87     useHttps: true
88     basePath: topics
89
90 management:
91   endpoints:
92     web:
93       base-path: /
94       exposure:
95         include: health, metrics, prometheus
96       path-mapping.prometheus: metrics