ansible role update
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{{/*
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
*/}}
|
||||
|
||||
{{- if .Values.configMap.enabled -}}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "druid.name" . }}
|
||||
labels:
|
||||
app: {{ template "druid.name" . }}
|
||||
chart: {{ template "druid.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
{{ toYaml .Values.configVars | indent 2 }}
|
||||
{{- if .Values.zookeeper.enabled }}
|
||||
druid_zk_service_host: {{ .Release.Name }}-zookeeper-headless:2181
|
||||
{{- else }}
|
||||
druid_zk_service_host: {{ .Values.zkHosts }}
|
||||
{{- end }}
|
||||
{{- if .Values.mysql.enabled }}
|
||||
druid_metadata_storage_type: mysql
|
||||
druid_metadata_storage_connector_connectURI: jdbc:mysql://{{ .Release.Name }}-mysql:3306/{{ .Values.mysql.mysqlDatabase}}
|
||||
druid_metadata_storage_connector_user: {{ .Values.mysql.mysqlUser }}
|
||||
druid_metadata_storage_connector_password: {{ .Values.mysql.mysqlPassword }}
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
druid_metadata_storage_type: postgresql
|
||||
druid_metadata_storage_connector_connectURI: jdbc:postgresql://{{ .Release.Name }}-postgresql:{{ .Values.postgresql.service.port}}/{{ .Values.postgresql.postgresqlDatabase }}
|
||||
druid_metadata_storage_connector_user: {{ .Values.postgresql.postgresqlUsername }}
|
||||
druid_metadata_storage_connector_password: {{ .Values.postgresql.postgresqlPassword }}
|
||||
{{- end }}
|
||||
{{- if .Values.gCloudStorage.enabled }}
|
||||
GOOGLE_APPLICATION_CREDENTIALS: /var/secrets/google/key.json
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user