[POLICY] Use common secret template in pap
[oom.git] / kubernetes / policy / charts / pap / resources / config / config.json
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2019 Nordix Foundation.
3 #  ================================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #
16 #  SPDX-License-Identifier: Apache-2.0
17 #  ============LICENSE_END=========================================================
18 {
19     "name":"PapGroup",
20     "restServerParameters":{
21         "host":"0.0.0.0",
22         "port":6969,
23         "userName":"healthcheck",
24         "password":"zb!XztG34",
25         "https": true,
26         "aaf": false
27     },
28     "pdpParameters": {
29         "heartBeatMs": 120000,
30         "updateParameters": {
31             "maxRetryCount": 1,
32             "maxWaitMs": 30000
33         },
34         "stateChangeParameters": {
35             "maxRetryCount": 1,
36             "maxWaitMs": 30000
37         }
38     },
39     "databaseProviderParameters": {
40         "name": "PolicyProviderParameterGroup",
41         "implementation": "org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl",
42         "databaseDriver": "org.mariadb.jdbc.Driver",
43         "databaseUrl": "jdbc:mariadb://{{ .Values.global.mariadb.service.name }}:{{ .Values.global.mariadb.service.internalPort }}/{{ .Values.global.mariadb.config.mysqlDatabase }}",
44         "databaseUser": "${SQL_USER}",
45         "databasePassword": "${SQL_PASSWORD_BASE64}",
46         "persistenceUnit": "PolicyMariaDb"
47     },
48     "topicParameterGroup": {
49         "topicSources" : [{
50             "topic" : "POLICY-PDP-PAP",
51             "servers" : [ "message-router" ],
52             "useHttps": true,
53             "topicCommInfrastructure" : "dmaap"
54         }],
55         "topicSinks" : [{
56             "topic" : "POLICY-PDP-PAP",
57             "servers" : [ "message-router" ],
58             "useHttps" : true,
59             "topicCommInfrastructure" : "dmaap"
60         },
61         {
62             "topic" : "POLICY-NOTIFICATION",
63             "servers" : [ "message-router" ],
64             "useHttps" : true,
65             "topicCommInfrastructure" : "dmaap"
66         }]
67     },
68     "healthCheckRestClientParameters":[{
69         "clientName": "api",
70         "hostname": "policy-api",
71         "port": 6969,
72         "userName": "healthcheck",
73         "password": "zb!XztG34",
74         "useHttps": true,
75         "basePath": "policy/api/v1/healthcheck"
76     },
77     {
78         "clientName": "distribution",
79         "hostname": "policy-distribution",
80         "port": 6969,
81         "userName": "healthcheck",
82         "password": "zb!XztG34",
83         "useHttps": true,
84         "basePath": "healthcheck"
85     }]
86 }