1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2021 ZTE Corporation Intellectual Property. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
18 #################################################################
19 # Global configuration.
20 #################################################################
22 nodePortPrefixExt: 302
24 #################################################################
25 # Application configuration defaults.
26 #################################################################
28 image: onap/holmes/rule-management:9.0.0
29 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
31 #################################################################
33 #################################################################
35 nameOverride: holmes-rule-mgmt-cert-initializer
36 aafDeployFqi: deployer@people.osaaf.org
37 aafDeployPass: demo123456!
38 # aafDeployCredsExternalSecret: some secret
39 fqdn: holmes-rule-mgmt
40 fqi: holmes-rule-mgmt@holmes-rule-mgmt.onap.org
41 fqi_namespace: org.onap.holmes-rule-mgmt
42 public_fqdn: holmes-rule-mgmt.onap.org
46 credsPath: /opt/app/osaaf/local
48 echo "*** changing them into shell safe ones"
49 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
50 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
51 cd {{ .Values.credsPath }}
52 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
53 -storepass "${cadi_keystore_password_p12}" \
54 -keystore {{ .Values.fqi_namespace }}.p12
55 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
56 -storepass "${cadi_truststore_password}" \
57 -keystore {{ .Values.fqi_namespace }}.trust.jks
58 echo "*** save the generated passwords"
59 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
60 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
61 echo "*** change ownership of certificates to targeted user"
64 #################################################################
66 #################################################################
70 externalSecret: '{{ tpl (default "" .Values.config.pgConfig.dbUserCredsExternalSecret) . }}'
71 login: '{{ .Values.config.pgConfig.dbUser }}'
72 password: '{{ .Values.config.pgConfig.dbUserPassword }}'
74 # application configuration
76 logstashServiceName: log-ls
78 # Addresses of other ONAP entities
89 # dbUserCredsExternalSecret
93 name: holmes-rule-mgmt
102 # probe configuration parameters
104 initialDelaySeconds: 10
107 path: /api/holmes-rule-mgmt/v1/healthcheck
112 initialDelaySeconds: 30
115 path: /api/holmes-rule-mgmt/v1/healthcheck
118 # Segregation for Different environment (Small and Large)