blob: e0d545b85a9cf2b53bc14603ce3c024c631c16aa [file] [log] [blame]
Zack Williams3432b942018-04-24 17:46:41 -07001{{- /*
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/ -}}
16
17{{- define "xos-core.config" }}
18name: xos-core
19xos_dir: /opt/xos
20database:
21 name: {{ .Values.xosDBName | quote }}
22 username: {{ .Values.xosDBUser | quote }}
23 password: {{ .Values.xosDBPassword | quote }}
24logging:
25 version: 1
26 handlers:
27 console:
28 class: logging.StreamHandler
29 file:
30 class: logging.handlers.RotatingFileHandler
31 filename: /var/log/xos.log
32 maxBytes: 10485760
33 backupCount: 5
Zack Williams11255982018-08-27 14:22:55 -070034 kafka:
Zack Williams7659cc92018-11-01 07:51:12 -070035 class: kafkaloghandler.KafkaLogHandler
Zack Williams11255982018-08-27 14:22:55 -070036 bootstrap_servers:
37 - "cord-kafka:9092"
38 topic: xos.log.core
Zack Williams3432b942018-04-24 17:46:41 -070039 loggers:
Zack Williams7659cc92018-11-01 07:51:12 -070040 '':
Zack Williams3432b942018-04-24 17:46:41 -070041 handlers:
42 - console
43 - file
Zack Williams11255982018-08-27 14:22:55 -070044 - kafka
Zack Williams3432b942018-04-24 17:46:41 -070045 level: DEBUG
46{{- end }}
47
48{{- define "xos-core.initial_data" }}
49- model: core.Site
50 fields:
51 name: {{ .Values.cordSiteName | quote }}
52 abbreviated_name: {{ .Values.cordSiteName | quote }}
53 login_base: {{ .Values.cordSiteName | quote }}
54 site_url: "http://opencord.org/"
55 hosts_nodes: true
56
57- model: core.User
58 fields:
59 email: {{ .Values.xosAdminUser | quote }}
60 password: {{ .Values.xosAdminPassword | quote }}
61 firstname: {{ .Values.xosAdminFirstname | quote }}
62 lastname: {{ .Values.xosAdminLastname | quote }}
63 is_admin: true
64 relations:
65 site:
66 fields:
67 name: {{ .Values.cordSiteName | quote }}
68 model: core.Site
69{{- end }}
70
71{{- define "xos-core.ca_cert_chain" }}
72{{ .Values.ca_cert_chain | b64dec }}
73{{- end }}
74