blob: bd13e1660ac8dd78a677fbd227bd4cc153f50f0d [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 Williams89998822018-11-19 14:54:13 -070045 level: {{ .Values.loglevel }}
Zack Williams3432b942018-04-24 17:46:41 -070046{{- 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" }}
Zack Williams4da1d152018-12-14 11:40:36 -070072{{ (.Files.Get "pki/xos-CA.pem")}}
Zack Williams3432b942018-04-24 17:46:41 -070073{{- end }}
74