blob: 1aa9044eabeab1561f2c4eebe924a3f4a01ea581 [file] [log] [blame]
Jakub Latusekd71d26c2020-10-21 13:36:29 +02001{{/*
mmis9cb50292018-09-19 00:31:35 +01002# ============LICENSE_START=======================================================
3# Copyright (C) 2018 Ericsson. All rights reserved.
jhhd2b9ed82019-12-10 17:15:28 -06004# Modifications Copyright (C) 2020 AT&T Intellectual Property.
jhhd74fe9f2021-04-15 11:04:39 -05005# Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
mmis9cb50292018-09-19 00:31:35 +01006# ================================================================================
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=========================================================
Jakub Latusekd71d26c2020-10-21 13:36:29 +020021*/}}
mmis9cb50292018-09-19 00:31:35 +010022{
23 "name":"SDCDistributionGroup",
24 "restServerParameters":{
25 "host":"0.0.0.0",
26 "port":6969,
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020027 "userName":"${RESTSERVER_USER}",
28 "password":"${RESTSERVER_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +000029 "https": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }},
jhhd74fe9f2021-04-15 11:04:39 -050030 "prometheus": true
mmis9cb50292018-09-19 00:31:35 +010031 },
32 "receptionHandlerParameters":{
33 "SDCReceptionHandler":{
34 "receptionHandlerType":"SDC",
35 "receptionHandlerClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandler",
36 "receptionHandlerConfigurationName":"sdcConfiguration",
37 "pluginHandlerParameters":{
38 "policyDecoders":{
jhhd2b9ed82019-12-10 17:15:28 -060039 "ToscaPolicyDecoder":{
40 "decoderType":"ToscaPolicyDecoder",
mmis9cb50292018-09-19 00:31:35 +010041 "decoderClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicy",
jhhd2b9ed82019-12-10 17:15:28 -060042 "decoderConfigurationName": "toscaPolicyDecoderConfiguration"
mmis9cb50292018-09-19 00:31:35 +010043 }
44 },
45 "policyForwarders":{
ramverma7ad80892019-08-30 14:55:47 +010046 "LifeCycleApiForwarder":{
47 "forwarderType":"LifeCycleAPI",
48 "forwarderClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiPolicyForwarder",
49 "forwarderConfigurationName": "lifecycleApiConfiguration"
mmis9cb50292018-09-19 00:31:35 +010050 }
51 }
52 }
53 }
54 },
55 "receptionHandlerConfigurationParameters":{
56 "sdcConfiguration":{
57 "parameterClassName":"org.onap.policy.distribution.reception.handling.sdc.SdcReceptionHandlerConfigurationParameterGroup",
58 "parameters":{
amatthews736bf372021-12-14 16:04:15 +000059 "asdcAddress": "sdc-be.{{ include "common.namespace" . }}:{{ (eq "true" (include "common.needTLS" .)) | ternary 8443 8080 }}",
mmis9cb50292018-09-19 00:31:35 +010060 "messageBusAddress": [
Ram Krishna Vermaa5fbdec2020-10-16 14:23:02 -040061 "message-router.{{ include "common.namespace" . }}"
mmis9cb50292018-09-19 00:31:35 +010062 ],
Dominik Mizyn4aa534f2020-04-14 18:03:53 +020063 "user": "${SDCBE_USER}",
64 "password": "${SDCBE_PASSWORD}",
mmis9cb50292018-09-19 00:31:35 +010065 "pollingInterval":20,
66 "pollingTimeout":30,
67 "consumerId": "policy-id",
68 "artifactTypes": [
69 "TOSCA_CSAR",
70 "HEAT"
71 ],
72 "consumerGroup": "policy-group",
73 "environmentName": "AUTO",
jhhd74fe9f2021-04-15 11:04:39 -050074 "keyStorePath": "null",
75 "keyStorePassword": "null",
mmis9cb50292018-09-19 00:31:35 +010076 "activeserverTlsAuth": false,
77 "isFilterinEmptyResources": true,
amatthews736bf372021-12-14 16:04:15 +000078 "isUseHttpsWithDmaap": {{ (eq "true" (include "common.needTLS" .)) | ternary true false }},
79 "isUseHttpsWithSDC": {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
mmis9cb50292018-09-19 00:31:35 +010080 }
81 }
82 },
83 "policyDecoderConfigurationParameters":{
jhhd2b9ed82019-12-10 17:15:28 -060084 "toscaPolicyDecoderConfiguration":{
mmis9cb50292018-09-19 00:31:35 +010085 "parameterClassName":"org.onap.policy.distribution.reception.decoding.policy.file.PolicyDecoderFileInCsarToPolicyParameterGroup",
86 "parameters":{
jhhd2b9ed82019-12-10 17:15:28 -060087 "policyFileName": "tosca_policy",
88 "policyTypeFileName": "tosca_policy_type"
mmis9cb50292018-09-19 00:31:35 +010089 }
90 }
91 },
92 "policyForwarderConfigurationParameters":{
ramverma7ad80892019-08-30 14:55:47 +010093 "lifecycleApiConfiguration":{
94 "parameterClassName":"org.onap.policy.distribution.forwarding.lifecycle.api.LifecycleApiForwarderParameters",
95 "parameters":{
96 "apiParameters": {
jhhd74fe9f2021-04-15 11:04:39 -050097 "clientName": "policy-api",
98 "hostname": "policy-api",
99 "port": 6969,
100 "userName": "${API_USER}",
101 "password": "${API_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +0000102 "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
ramverma7ad80892019-08-30 14:55:47 +0100103 },
jhhd74fe9f2021-04-15 11:04:39 -0500104 "papParameters": {
105 "clientName": "policy-pap",
106 "hostname": "policy-pap",
107 "port": 6969,
108 "userName": "${PAP_USER}",
109 "password": "${PAP_PASSWORD}",
amatthews736bf372021-12-14 16:04:15 +0000110 "useHttps": {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
jhhd74fe9f2021-04-15 11:04:39 -0500111 },
ramverma7ad80892019-08-30 14:55:47 +0100112 "deployPolicies": true
113 }
mmis9cb50292018-09-19 00:31:35 +0100114 }
115 }
116}