blob: bc4f7202835c635541c5f91e6f09d77661b815bd [file] [log] [blame]
Gopinath Tagetd9ce07c2018-06-05 16:38:17 -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 "voltha-shovel.cmd" }}
18- "/shovel/shovel/main.py"
19- "--kafka={{ .Values.kafkaReleaseName }}-kafka.default.svc.cluster.local"
20- "--host=grafana.voltha.svc.cluster.local"
21- "--topic=voltha.kpis"
22{{- end }}
23
24{{- define "voltha-dashd.cmd" }}
25- "/dashd/dashd/main.py"
26- "--kafka={{ .Values.kafkaReleaseName }}-kafka.default.svc.cluster.local"
27- "--grafana_url=http://admin:admin@grafana.$(NAMESPACE).svc.cluster.local:80/api"
28- "--topic=voltha.kpis"
29{{- end }}
30
31{{- define "voltha-vcore.cmd" }}
32- "voltha/voltha/main.py"
33- "-v"
34- "--etcd=etcd-cluster.default.svc.cluster.local:2379"
35- "--kafka={{ .Values.kafkaReleaseName }}-kafka.default.svc.cluster.local"
36- "--rest-port=8880"
37- "--grpc-port=50556"
38- "--interface=eth1"
39- "--backend=etcd"
40- "--pon-subnet=10.38.0.0/12"
41- "--ponsim-comm=grpc"
42{{- end }}
43
44{{- define "xos-core.initial_data" }}
45- model: core.Site
46 fields:
47 name: {{ .Values.cordSiteName | quote }}
48 abbreviated_name: {{ .Values.cordSiteName | quote }}
49 login_base: {{ .Values.cordSiteName | quote }}
50 site_url: "http://opencord.org/"
51 hosts_nodes: true
52
53- model: core.User
54 fields:
55 email: {{ .Values.xosAdminUser | quote }}
56 password: {{ .Values.xosAdminPassword | quote }}
57 firstname: {{ .Values.xosAdminFirstname | quote }}
58 lastname: {{ .Values.xosAdminLastname | quote }}
59 is_admin: true
60 relations:
61 site:
62 fields:
63 name: {{ .Values.cordSiteName | quote }}
64 model: core.Site
65{{- end }}
66
67{{- define "xos-core.ca_cert_chain" }}
68{{ .Values.ca_cert_chain | b64dec }}
69{{- end }}
70