harmonize setting names
This commit is contained in:
parent
45ffa3d11b
commit
ee3dbb912f
@ -227,8 +227,8 @@ Postgresql/Superset settings
|
||||
|
||||
- ``CAIRN_RUN_POSTGRESQL`` (default: ``true``): set to ``false`` to run your own Postgresql cluster separately from Cairn. Postgresql is the database that stores all data related to Superset, which is the Cairn frontend.
|
||||
- ``CAIRN_SUPERSET_DOCKER_IMAGE`` (default: ``"{{ DOCKER_REGISTRY }}overhangio/cairn-superset:{{ CAIRN_VERSION }}"``): name of the Docker image that runs Postgresql.
|
||||
- ``CAIRN_POSTGRESQL_DB`` (default: ``"superset"``): name of the Postgresql database.
|
||||
- ``CAIRN_POSTGRESQL_USER`` (default: ``"superset"``): Postgresql username.
|
||||
- ``CAIRN_POSTGRESQL_DATABASE`` (default: ``"superset"``): name of the Postgresql database.
|
||||
- ``CAIRN_POSTGRESQL_USERNAME`` (default: ``"superset"``): Postgresql username.
|
||||
- ``CAIRN_POSTGRESQL_PASSWORD`` (default: ``"{{ 20|random_string }}"``): Postgresql password.
|
||||
- ``CAIRN_SUPERSET_SECRET_KEY`` (default: ``"{{ 20|random_string }}"``): randomly-generated secret key for the Superset frontend.
|
||||
|
||||
|
||||
@ -332,11 +332,11 @@ spec:
|
||||
image: docker.io/postgres:9.6-alpine
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
value: "{{ CAIRN_POSTGRESQL_USER }}"
|
||||
value: "{{ CAIRN_POSTGRESQL_USERNAME }}"
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ CAIRN_POSTGRESQL_PASSWORD }}"
|
||||
- name: POSTGRES_DB
|
||||
value: "{{ CAIRN_POSTGRESQL_DB }}"
|
||||
value: "{{ CAIRN_POSTGRESQL_DATABASE }}"
|
||||
# The following is required, otherwise postgresql refuses to
|
||||
# write to the non-empty directory which contains "lost+found".
|
||||
- name: PGDATA
|
||||
|
||||
@ -75,9 +75,9 @@ cairn-redis:
|
||||
cairn-postgresql:
|
||||
image: docker.io/postgres:9.6-alpine
|
||||
environment:
|
||||
POSTGRES_USER: "{{ CAIRN_POSTGRESQL_USER }}"
|
||||
POSTGRES_USER: "{{ CAIRN_POSTGRESQL_USERNAME }}"
|
||||
POSTGRES_PASSWORD: "{{ CAIRN_POSTGRESQL_PASSWORD }}"
|
||||
POSTGRES_DB: "{{ CAIRN_POSTGRESQL_DB }}"
|
||||
POSTGRES_DB: "{{ CAIRN_POSTGRESQL_DATABASE }}"
|
||||
volumes:
|
||||
- ../../data/cairn/postgresql:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
@ -28,8 +28,8 @@ config = {
|
||||
"CLICKHOUSE_USERNAME": "openedx",
|
||||
# Superset/Postgresql
|
||||
"RUN_POSTGRESQL": True,
|
||||
"POSTGRESQL_USER": "superset",
|
||||
"POSTGRESQL_DB": "superset",
|
||||
"POSTGRESQL_DATABASE": "superset",
|
||||
"POSTGRESQL_USERNAME": "superset",
|
||||
"SUPERSET_DOCKER_IMAGE": "{{ DOCKER_REGISTRY }}overhangio/cairn-superset:{{ CAIRN_VERSION }}",
|
||||
},
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ from celery.schedules import crontab
|
||||
|
||||
# https://superset.apache.org/docs/installation/configuring-superset
|
||||
SECRET_KEY = "{{ CAIRN_SUPERSET_SECRET_KEY }}"
|
||||
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://{{ CAIRN_POSTGRESQL_USER }}:{{ CAIRN_POSTGRESQL_PASSWORD }}@cairn-postgresql/{{ CAIRN_POSTGRESQL_DB }}"
|
||||
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://{{ CAIRN_POSTGRESQL_USERNAME }}:{{ CAIRN_POSTGRESQL_PASSWORD }}@cairn-postgresql/{{ CAIRN_POSTGRESQL_DATABASE }}"
|
||||
|
||||
DATA_CACHE_CONFIG = {
|
||||
"CACHE_TYPE": "redis",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user