fc0060629e1488331b21940c096b7c7295681850
[oom.git] / kubernetes / policy / components / policy-clamp-ac-pf-ppnt / resources / config / PolicyParticipantParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2022 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 spring:
20   security:
21     user:
22       name: ${RESTSERVER_USER}
23       password: ${RESTSERVER_PASSWORD}
24   kafka:
25     consumer:
26       group-id: {{ .Values.config.kafka.consumer.groupId }}
27 {{- if .Values.config.useStrimziKafka }}
28     bootstrap-servers: {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
29     security.protocol: SASL_PLAINTEXT
30     properties.sasl:
31       mechanism: SCRAM-SHA-512
32       jaas.config: ${JAASLOGIN}
33 {{ else }}
34 {{ toYaml .Values.config.eventConsumption | nindent 2 }}
35 {{- end }}
36
37 security:
38   enable-csrf: false
39
40 participant:
41   pdpGroup: defaultGroup
42   pdpType: apex
43   policyApiParameters:
44     clientName: api
45     hostname: policy-api
46     port: 6969
47     userName: ${API_USER}
48     password: ${API_PASSWORD}
49     useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
50     allowSelfSignedCerts: true
51   policyPapParameters:
52     clientName: pap
53     hostname: policy-pap
54     port: 6969
55     userName: ${PAP_USER}
56     password: ${PAP_PASSWORD}
57     useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
58     allowSelfSignedCerts: true
59   intermediaryParameters:
60     reportingTimeIntervalMs: 120000
61     description: Participant Description
62     participantId:
63       name: org.onap.PM_Policy
64       version: 1.0.0
65     participantType:
66       name: org.onap.policy.clamp.acm.PolicyParticipant
67       version: 2.3.1
68     clampAutomationCompositionTopics:
69       topicSources:
70         -
71           topic: POLICY-ACRUNTIME-PARTICIPANT
72           servers:
73             - ${topicServer:message-router}
74           topicCommInfrastructure: dmaap
75           fetchTimeout: 15000
76           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
77       topicSinks:
78         -
79           topic: POLICY-ACRUNTIME-PARTICIPANT
80           servers:
81             - ${topicServer:message-router}
82           topicCommInfrastructure: dmaap
83           useHttps: {{ (eq "true" (include "common.needTLS" .)) | ternary "true" "false" }}
84
85 # If Strimzi Kafka to be used for communication, replace clampAutomationCompositionTopics configuration with below
86 #    clampAutomationCompositionTopics:
87 #      topicSources:
88 #        -
89 #          topic: policy-acruntime-participant
90 #          servers:
91 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
92 #          topicCommInfrastructure: kafka
93 #          fetchTimeout: 15000
94 #          useHttps: true
95 #          additionalProps:
96 #            security.protocol: SASL_PLAINTEXT
97 #            sasl.mechanism: SCRAM-SHA-512
98 #            sasl.jaas.config: ${JAASLOGIN}
99 #      topicSinks:
100 #        -
101 #          topic: policy-acruntime-participant
102 #          servers:
103 #            - {{ include "common.release" . }}-{{ .Values.config.kafkaBootstrap }}:9092
104 #          topicCommInfrastructure: kafka
105 #          useHttps: true
106 #          additionalProps:
107 #            security.protocol: SASL_PLAINTEXT
108 #            sasl.mechanism: SCRAM-SHA-512
109 #            sasl.jaas.config: ${JAASLOGIN}
110
111 management:
112   endpoints:
113     web:
114       exposure:
115         include: health, metrics, prometheus
116
117 server:
118   port: 8085
119   servlet:
120     context-path: /onap/policyparticipant
121   ssl:
122     enabled: {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
123