1 # Copyright © 2017 Amdocs, Bell Canada
2 # Copyright © 2020 Samsung Electronics
3 # Copyright © 2021 Orange
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.
17 # Default values for vid.
18 # This is a YAML-formatted file.
19 # Declare variables to be passed into your templates.
22 mariadbGalera: &mariadbGalera
23 #This flag allows VID to instantiate its own mariadb-galera cluster
25 service: mariadb-galera
27 nameOverride: mariadb-galera
28 centralizedLoggingEnabled: true
30 #################################################################
32 #################################################################
34 - uid: vid-db-user-secret
35 name: &dbUserSecretName '{{ include "common.release" . }}-vid-db-user-secret'
37 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
38 login: '{{ .Values.config.db.userName }}'
39 password: '{{ .Values.config.db.userPassword }}'
41 #################################################################
43 #################################################################
45 nameOverride: vid-cert-initializer
46 aafDeployFqi: deployer@people.osaaf.org
47 aafDeployPass: demo123456!
48 # aafDeployCredsExternalSecret: some secret
51 public_fqdn: vid.onap.org
52 fqi_namespace: "org.onap.vid"
56 credsPath: /opt/app/osaaf/local
58 echo "*** retrieving password for keystore and trustore"
59 export $(/opt/app/aaf_config/bin/agent.sh local showpass \
60 {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c' | xargs -0)
61 if [ -z "$cadi_keystore_password" ]
63 echo " /!\ certificates retrieval failed"
66 echo "*** changing them into shell safe ones"
67 export KEYSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
68 export TRUSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
69 cd {{ .Values.credsPath }}
70 keytool -storepasswd -new "${KEYSTORE_PASSWD}" \
71 -storepass "${cadi_keystore_password_jks}" \
72 -keystore {{ .Values.fqi_namespace }}.jks
73 keytool -storepasswd -new "${TRUSTORE_PASSWD}" \
74 -storepass "${cadi_truststore_password}" \
75 -keystore {{ .Values.fqi_namespace }}.trust.jks
76 echo "*** set key password as same password as keystore password"
77 keytool -keypasswd -new "${KEYSTORE_PASSWD}" \
78 -keystore {{ .Values.fqi_namespace }}.jks \
79 -keypass "${cadi_keystore_password_jks}" \
80 -storepass "${KEYSTORE_PASSWD}" -alias {{ .Values.fqi }}
81 echo "*** save the generated passwords"
82 echo "VID_KEYSTORE_PASSWORD=${KEYSTORE_PASSWD}" > mycreds.prop
83 echo "VID_TRUSTSTORE_PASSWORD=${TRUSTORE_PASSWD}" >> mycreds.prop
84 echo "*** change ownership of certificates to targeted user"
95 # application configuration
99 # userCredentialsExternalSecret: some secret
100 # userPassword: password
101 asdcclientrestauth: "Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
102 asdcclientrestport: "8443"
106 portalhost: "portal.api.simpledemo.onap.org"
108 vidmsopass: OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
109 msodme2serverurl: http://localhost:8081
110 vidcontactuslink: https://todo_contact_us_link.com
111 vidmysqlmaxconnections: "5"
112 logstashServiceName: log-ls
114 roleaccesscentralized: remote
119 externalSecret: *dbUserSecretName
120 name: &mysqlDbName vid_openecomp_epsdk
121 nameOverride: &vid-galera vid-galera
125 mountSubPath: vid/maria/data
128 lower_case_table_names = 1
130 nameOverride: *vid-galera
134 userCredentialsExternalSecret: *dbUserSecretName
135 mysqlDatabase: *mysqlDbName
136 nameOverride: vid-mariadb-init
137 # A configMap of same name is created. It points to file that will be run after
138 # The DB has been created.
139 dbScriptConfigMap: '{{ include "common.release" . }}-vid-db-init'
141 # default number of instances
148 # probe configuration parameters
150 initialDelaySeconds: 120
152 # necessary to disable liveness probe when setting breakpoints
153 # in debugger so K8s doesn't restart unresponsive container
157 initialDelaySeconds: 10
167 externalHttpPort: 8080
168 internalHttpPort: 8080
180 # Resource Limit flavor -By Default using small
182 # Segregation for Different environment (Small and Large)