Merge "[HOLMES] Fixed the healthcheck failure"
[oom.git] / kubernetes / policy / components / policy-pap / resources / config / config.json
1 {{/*
2 #  ============LICENSE_START=======================================================
3 #   Copyright (C) 2019 Nordix Foundation.
4 #   Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
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
11 #
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 */}}
21 {
22     "name":"PapGroup",
23     "restServerParameters":{
24         "host":"0.0.0.0",
25         "port":6969,
26         "userName":"${RESTSERVER_USER}",
27         "password":"${RESTSERVER_PASSWORD}",
28         "https": true,
29         "aaf": false,
30         "prometheus": true
31     },
32     "pdpParameters": {
33         "heartBeatMs": 120000,
34         "updateParameters": {
35             "maxRetryCount": 1,
36             "maxWaitMs": 30000
37         },
38         "stateChangeParameters": {
39             "maxRetryCount": 1,
40             "maxWaitMs": 30000
41         }
42     },
43     "databaseProviderParameters": {
44         "name": "PolicyProviderParameterGroup",
45         "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
46         "databaseDriver": "org.mariadb.jdbc.Driver",
47         "databaseUrl": "jdbc:mariadb://{{ .Values.db.service.name }}:{{ .Values.db.service.internalPort }}/policyadmin",
48         "databaseUser": "${SQL_USER}",
49         "databasePassword": "${SQL_PASSWORD}",
50         "persistenceUnit": "PolicyMariaDb"
51     },
52     "savePdpStatisticsInDb": true,
53     "topicParameterGroup": {
54         "topicSources" : [{
55             "topic" : "POLICY-PDP-PAP",
56             "servers" : [ "message-router" ],
57             "useHttps": true,
58             "fetchTimeout": 15000,
59             "topicCommInfrastructure" : "dmaap"
60         },
61         {
62             "topic" : "POLICY-HEARTBEAT",
63             "effectiveTopic": "POLICY-PDP-PAP",
64             "consumerGroup": "policy-pap",
65             "servers" : [ "message-router" ],
66             "useHttps": true,
67             "fetchTimeout": 15000,
68             "topicCommInfrastructure" : "dmaap"
69         }],
70         "topicSinks" : [{
71             "topic" : "POLICY-PDP-PAP",
72             "servers" : [ "message-router" ],
73             "useHttps" : true,
74             "topicCommInfrastructure" : "dmaap"
75         },
76         {
77             "topic" : "POLICY-NOTIFICATION",
78             "servers" : [ "message-router" ],
79             "useHttps" : true,
80             "topicCommInfrastructure" : "dmaap"
81         }]
82     },
83     "healthCheckRestClientParameters":[{
84         "clientName": "api",
85         "hostname": "policy-api",
86         "port": 6969,
87         "userName": "${API_USER}",
88         "password": "${API_PASSWORD}",
89         "useHttps": true,
90         "basePath": "policy/api/v1/healthcheck"
91     },
92     {
93         "clientName": "distribution",
94         "hostname": "policy-distribution",
95         "port": 6969,
96         "userName": "${DISTRIBUTION_USER}",
97         "password": "${DISTRIBUTION_PASSWORD}",
98         "useHttps": true,
99         "basePath": "healthcheck"
100     }]
101 }