1e7edea091fc6173f44ca5678798787e44a9eee2
[oom.git] /
1 #  ============LICENSE_START=======================================================
2 #   Copyright (C) 2021-2024 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   pdpGroup: defaultGroup
35   pdpType: apex
36   policyApiParameters:
37     clientName: api
38     hostname: policy-api
39     port: 6969
40     userName: ${API_USER}
41     password: ${API_PASSWORD}
42     useHttps: "false"
43     allowSelfSignedCerts: true
44   policyPapParameters:
45     clientName: pap
46     hostname: policy-pap
47     port: 6969
48     userName: ${PAP_USER}
49     password: ${PAP_PASSWORD}
50     useHttps: "false"
51     allowSelfSignedCerts: true
52   intermediaryParameters:
53     topics:
54       operationTopic: {{ .Values.global.kafkaTopics.acRuntimeOperationTopic.name }}
55       syncTopic: {{ .Values.global.kafkaTopics.acRuntimeSyncTopic.name }}
56     reportingTimeIntervalMs: 120000
57     description: Participant Description
58     participantId: 101c62b3-8918-41b9-a747-d21eb79c6c03
59     clampAutomationCompositionTopics:
60       topicSources:
61         -
62           useHttps: false
63           fetchTimeout: 15000
64           topic: {{ .Values.global.kafkaTopics.acRuntimeOperationTopic.name }}
65           topicCommInfrastructure: kafka
66           servers:
67             - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }}
68           additionalProps:
69             group.id: {{ (first .Values.kafkaUser.acls).name }}
70             allow.auto.create.topics: false
71             security.protocol: SASL_PLAINTEXT
72             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
73             sasl.jaas.config: ${SASL_JAAS_CONFIG}
74         -
75           useHttps: false
76           fetchTimeout: 15000
77           topic: {{ .Values.global.kafkaTopics.acRuntimeSyncTopic.name }}
78           topicCommInfrastructure: kafka
79           servers:
80             - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }}
81           additionalProps:
82             allow.auto.create.topics: false
83             security.protocol: SASL_PLAINTEXT
84             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
85             sasl.jaas.config: ${SASL_JAAS_CONFIG}
86       topicSinks:
87         -
88           useHttps: false
89           fetchTimeout: 15000
90           topic: {{ .Values.global.kafkaTopics.acRuntimeOperationTopic.name }}
91           topicCommInfrastructure: kafka
92           servers:
93             - {{ include "common.release" . }}-{{ .Values.global.kafkaBootstrap }}
94           additionalProps:
95             client.id: {{ (first .Values.kafkaUser.acls).name }}-client-id
96             security.protocol: SASL_PLAINTEXT
97             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
98             sasl.jaas.config: ${SASL_JAAS_CONFIG}
99     participantSupportedElementTypes:
100       -
101         typeName: org.onap.policy.clamp.acm.PolicyAutomationCompositionElement
102         typeVersion: 1.0.0
103
104 management:
105   endpoints:
106     web:
107       exposure:
108         include: health, metrics, prometheus
109
110 server:
111   port: 8085
112   servlet:
113     context-path: /onap/policyparticipant
114   ssl:
115     enabled: false