Merge "[COMMON][ES] Simplify cert retrieval script"
[oom.git] / kubernetes / oof / components / oof-cmso / values.yaml
1 # Copyright © 2018 AT&T
2 # Copyright (C) 2020 Wipro Limited.
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 global:
17   commonConfigPrefix: "oof-cmso"
18   truststoreFile: "truststoreONAPall.jks"
19   keystoreFile: "org.onap.oof.jks"
20   truststorePassword:
21   authentication: aaf-auth
22   mariadbGalera: &mariadbGalera
23     #This flag allows OOF-CMSO to instantiate its own mariadb-galera cluster
24     localCluster: false
25     service: mariadb-galera
26     internalPort: 3306
27     nameOverride: mariadb-galera
28
29 #################################################################
30 # Secrets metaconfig
31 #################################################################
32 secrets:
33   - uid: cmso-db-root-password
34     name: &rootPassword '{{ include "common.release" . }}-cmso-db-root-password'
35     type: password
36     password: ''
37     policy: generate
38   - uid: cmso-service-db-secret
39     name: &serviceDbCreds '{{ include "common.release" . }}-cmso-service-db-secret'
40     type: basicAuth
41     externalSecret: '{{ tpl (default "" .Values.config.db.service.userCredentialsExternalSecret) . }}'
42     login: '{{ .Values.config.db.service.userName }}'
43     password: '{{ .Values.config.db.service.userPassword }}'
44     passwordPolicy: generate
45   - uid: cmso-db-secret
46     name: &optimizerDbCreds '{{ include "common.release" . }}-cmso-optimizer-db-secret'
47     type: basicAuth
48     externalSecret: '{{ tpl (default "" .Values.config.db.optimizer.userCredentialsExternalSecret) . }}'
49     login: '{{ .Values.config.db.optimizer.userName }}'
50     password: '{{ .Values.config.db.optimizer.userPassword }}'
51     passwordPolicy: generate
52   - uid: cmso-aaf-creds
53     name: &aafCreds '{{ include "common.release" . }}-cmso-aaf-creds'
54     type: basicAuth
55     login: '{{ .Values.config.aaf.user }}'
56     password: '{{ .Values.config.aaf.password }}'
57
58 mariadb-galera: &localMariadb
59   replicaCount: 1
60   nameOverride: &dbName cmso-db
61   nfsprovisionerPrefix: cmso
62   sdnctlPrefix: cmso
63   persistence:
64     mountSubPath: cmso/data
65     enabled: true
66   disableNfsProvisioner: true
67   rootUser:
68     externalSecret: *rootPassword
69   serviceAccount:
70     nameOverride: *dbName
71
72 mariadb-init:
73   config:
74     userCredentialsExternalSecret: *serviceDbCreds
75     mysqlDatabase: cmso
76     mysqlAdditionalDatabases:
77       optimizer:
78         externalSecret: *optimizerDbCreds
79   nameOverride: cmso-db-config
80
81 flavor: small
82
83 config:
84   aaf:
85     user: oof@oof.onap.org
86     password: demo123456!
87   log:
88     logstashServiceName: log-ls
89     logstashPort: 5044
90   db:
91     service:
92       # userCredentialsExternalsecret: some secret
93       userName: cmso-admin
94       # userPassword: password
95     optimizer:
96       userName: cmso-optimizer
97
98 #sub-charts configuration
99 certInitializer: &certInitConfig
100   fqdn: "oof.onap"
101   app_ns: "org.osaaf.aaf"
102   fqi: "oof@oof.onap.org"
103   fqi_namespace: org.onap.oof
104   public_fqdn: "oof.onap.org"
105   aafDeployFqi: "deployer@people.osaaf.org"
106   aafDeployPass: demo123456!
107   cadi_latitude: "0.0"
108   cadi_longitude: "0.0"
109   credsPath: /opt/app/osaaf/local
110   appMountPath: /share/etc/osaaf
111   aaf_add_config: >
112     cd {{ .Values.credsPath }};
113     /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} | grep cadi_keystore_password_jks= | cut -d= -f 2 > {{ .Values.credsPath }}/.pass 2>&1;
114     find ./ -type f -exec sed -i -e 's/\/opt\/app\/osaaf\/local/\/share\/etc\/osaaf\/local/g' {} \;
115
116 oof-cmso-service:
117   enabled: true
118   certInitializer:
119     << : *certInitConfig
120     nameOverride: oof-cmso-service-cert-initializer
121   mariadb-galera: *localMariadb
122   config:
123     db:
124       userCredentialsExternalSecret: *serviceDbCreds
125       mysqlDatabase: cmso
126     aaf:
127       userCredentialsExternalSecret: *aafCreds
128
129 oof-cmso-optimizer:
130   enabled: true
131   certInitializer:
132     << : *certInitConfig
133     nameOverride: oof-cmso-optimizer-cert-initializer
134   mariadb-galera: *localMariadb
135   config:
136     enabled: true
137     db:
138       userCredentialsExternalSecret: *optimizerDbCreds
139       mysqlDatabase: optimizer
140     aaf:
141       userCredentialsExternalSecret: *aafCreds
142
143 oof-cmso-topology:
144   enabled: true
145   certInitializer:
146     << : *certInitConfig
147     nameOverride: oof-cmso-topology-cert-initializer
148
149 oof-cmso-ticketmgt:
150   enabled: true
151   certInitializer:
152     << : *certInitConfig
153     nameOverride: oof-cmso-ticketmgt-cert-initializer