[POLICY-PPNT] Move policy-clamp-ppnt use case to use strimzi kafka
[oom.git] / kubernetes / policy / components / policy-clamp-ac-http-ppnt / resources / config / HttpParticipantParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2023 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   autoconfigure:
21     exclude: >
22       org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,
23       org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,
24       org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
25   security:
26     user:
27       name: ${RESTSERVER_USER}
28       password: ${RESTSERVER_PASSWORD}
29
30 security:
31   enable-csrf: false
32
33 participant:
34   intermediaryParameters:
35     reportingTimeIntervalMs: 120000
36     description: Participant Description
37     participantId: 101c62b3-8918-41b9-a747-d21eb79c6c01
38     clampAutomationCompositionTopics:
39       topicSources:
40         -
41           useHttps: false
42           fetchTimeout: 15000
43           topic: {{ .Values.global.kafkaTopics.acRuntimeTopic.name }}
44           {{ if .Values.global.useStrimziKafka }}
45           topicCommInfrastructure: kafka
46           servers:
47             - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
48           additionalProps:
49             group.id: {{ (first .Values.kafkaUser.acls).name }}
50             allow.auto.create.topics: false
51             security.protocol: SASL_PLAINTEXT
52             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
53             sasl.jaas.config: ${SASL_JAAS_CONFIG}
54           {{ else }}
55           topicCommInfrastructure: dmaap
56           servers:
57             - ${topicServer:message-router}
58           {{ end }}
59       topicSinks:
60         -
61           useHttps: false
62           fetchTimeout: 15000
63           topic: {{ .Values.global.kafkaTopics.acRuntimeTopic.name }}
64           {{ if .Values.global.useStrimziKafka }}
65           topicCommInfrastructure: kafka
66           servers:
67             - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
68           additionalProps:
69             client.id: {{ (first .Values.kafkaUser.acls).name }}-client-id
70             security.protocol: SASL_PLAINTEXT
71             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
72             sasl.jaas.config: ${SASL_JAAS_CONFIG}
73           {{ else }}
74           topicCommInfrastructure: dmaap
75           servers:
76             - ${topicServer:message-router}
77           {{ end }}
78     participantSupportedElementTypes:
79       -
80         typeName: org.onap.policy.clamp.acm.HttpAutomationCompositionElement
81         typeVersion: 1.0.0
82
83
84 management:
85   endpoints:
86     web:
87       exposure:
88         include: health, metrics, prometheus
89 server:
90   port: 8084
91   servlet:
92     context-path: /onap/httpparticipant
93   ssl:
94     enabled: {{ (eq "true" (include "common.needTLS" .)) | ternary true false }}
95