Database passwords now optional

This commit is contained in:
William Miceli
2019-05-05 21:13:42 -04:00
parent 48a1d86d6f
commit ea02dfb0e7
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,9 @@ services:
DB_HOST: postgresql DB_HOST: postgresql
DB_DATABASE: xwiki_db DB_DATABASE: xwiki_db
DB_USER: xwiki_user DB_USER: xwiki_user
{{- if .Values.DB_USER_PASS}}
DB_PASSWORD: ${DB_USER_PASS} DB_PASSWORD: ${DB_USER_PASS}
{{- end}}
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}
@@ -43,9 +45,13 @@ services:
environment: environment:
POSTGRES_INITDB_ARGS: "--encoding=UTF8" POSTGRES_INITDB_ARGS: "--encoding=UTF8"
POSTGRES_DB: xwiki_db POSTGRES_DB: xwiki_db
{{- if .Values.DB_ROOT_PASS}}
POSTGRES_ROOT_PASSWORD: ${DB_ROOT_PASS} POSTGRES_ROOT_PASSWORD: ${DB_ROOT_PASS}
{{- end}}
POSTGRES_USER: xwiki_user POSTGRES_USER: xwiki_user
{{- if .Values.DB_USER_PASS}}
POSTGRES_PASSWORD: ${DB_USER_PASS} POSTGRES_PASSWORD: ${DB_USER_PASS}
{{- end}}
labels: labels:
io.rancher.container.pull_image: always io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}} {{- if .Values.HOST_LABEL}}

View File

@@ -30,7 +30,7 @@ catalog:
description: | description: |
A secure password to be used by the "root" database user. A secure password to be used by the "root" database user.
# default: # default:
required: true required: false
type: password type: password
- variable: "DB_USER_PASS" - variable: "DB_USER_PASS"
@@ -38,7 +38,7 @@ catalog:
description: | description: |
A secure password to be used by the "xwiki_user" database user. A secure password to be used by the "xwiki_user" database user.
# default: # default:
required: true required: false
type: password type: password
- variable: "DATA_DIR" - variable: "DATA_DIR"