Merge "[UUI] Service Mesh Compliance for UUI"
[oom.git] / kubernetes / policy / components / policy-distribution / resources / config / config.json
1 {{/*
2 #  ============LICENSE_START=======================================================
3 #   Copyright (C) 2018 Ericsson. All rights reserved.
4 #   Modifications Copyright (C) 2020 AT&T Intellectual Property.
5 #   Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
6 #  ================================================================================
7 #  Licensed under the Apache License, Version 2.0 (the "License");
8 #  you may not use this file except in compliance with the License.
9 #  You may obtain a copy of the License at
10 #
11 #       http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #  Unless required by applicable law or agreed to in writing, software
14 #  distributed under the License is distributed on an "AS IS" BASIS,
15 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #  See the License for the specific language governing permissions and
17 #  limitations under the License.
18 #
19 #  SPDX-License-Identifier: Apache-2.0
20 #  ============LICENSE_END=========================================================
21 */}}
22 {
23     "name":"SDCDistributionGroup",
24     "restServerParameters":{
25         "host":"0.0.0.0",
26         "port":6969,
27         "userName":"${RESTSERVER_USER}",
28         "password":"${RESTSERVER_PASSWORD}",
29         "https": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }},
30         "prometheus": true
31     },
32     "receptionHandlerParameters":{
33         "SDCReceptionHandler":{
34             "receptionHandlerType":"SDC",
35             "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler",
36             "receptionHandlerConfigurationName":"sdcConfiguration",
37             "pluginHandlerParameters":{
38                 "policyDecoders":{
39                     "ToscaPolicyDecoder":{
40                         "decoderType":"ToscaPolicyDecoder",
41                         "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy",
42                         "decoderConfigurationName": "toscaPolicyDecoderConfiguration"
43                     }
44                 },
45                 "policyForwarders":{
46                     "LifeCycleApiForwarder":{
47                         "forwarderType":"LifeCycleAPI",
48                         "forwarderClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder",
49                         "forwarderConfigurationName": "lifecycleApiConfiguration"
50                     }
51                 }
52             }
53         }
54     },
55     "receptionHandlerConfigurationParameters":{
56         "sdcConfiguration":{
57             "parameterClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandlerConfigurationParameterGroup",
58             "parameters":{
59                 "asdcAddress": "sdc-be.{{ include "common.namespace" . }}:{{ (eq "true" (include "common.needTLS" .)) | ternary 8443 8080 }}",
60                 "messageBusAddress": [
61                     "message-router.{{ include "common.namespace" . }}"
62                  ],
63                 "user": "${SDCBE_USER}",
64                 "password": "${SDCBE_PASSWORD}",
65                 "pollingInterval":20,
66                 "pollingTimeout":30,
67                 "consumerId": "policy-id",
68                 "artifactTypes": [
69                     "TOSCA_CSAR",
70                     "HEAT"
71                 ],
72                 "consumerGroup": "policy-group",
73                 "environmentName": "AUTO",
74                 "keyStorePath": "null",
75                 "keyStorePassword": "null",
76                 "activeserverTlsAuth": false,
77                 "isFilterinEmptyResources": true,
78                 "isUseHttpsWithDmaap": {{ (eq "true" (include "common.needTLS" .)) | ternary true false }},
79                 "isUseHttpsWithSDC": {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
80             }
81         }
82     },
83     "policyDecoderConfigurationParameters":{
84         "toscaPolicyDecoderConfiguration":{
85             "parameterClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicyParameterGroup",
86             "parameters":{
87                 "policyFileName": "tosca_policy",
88                 "policyTypeFileName": "tosca_policy_type"
89             }
90         }
91     },
92     "policyForwarderConfigurationParameters":{
93         "lifecycleApiConfiguration":{
94             "parameterClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters",
95             "parameters":{
96                 "apiParameters": {
97                     "clientName": "policy-api",
98                     "hostname": "policy-api",
99                     "port": 6969,
100                     "userName": "${API_USER}",
101                     "password": "${API_PASSWORD}",
102                     "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
103                 },
104                 "papParameters": {
105                     "clientName": "policy-pap",
106                     "hostname": "policy-pap",
107                     "port": 6969,
108                     "userName": "${PAP_USER}",
109                     "password": "${PAP_PASSWORD}",
110                     "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
111                 },
112                 "deployPolicies": true
113              }
114         }
115     }
116 }