From 59fa0fd2a9c82cf134c299fdd1096b7c71c0792a Mon Sep 17 00:00:00 2001 From: Brain Date: Mon, 6 Dec 2021 15:29:25 +0100 Subject: [PATCH] Add new variables for prod --- defaults/main.yml | 2 ++ templates/docker-compose.yml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 76928a1..1aca62a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -11,3 +11,5 @@ ki_ldap_url: ldaps://idp01.wtf-eg.net:636 ki_ldap_auth_user: "" ki_ldap_auth_password: "" ki_ldap_base_dn: ou=people,dc=wtf-eg,dc=de +ki_flask_env: development +ki_loglevel: 10 diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 293ed27..b5fe3d2 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -16,8 +16,8 @@ services: - ki environment: SQLALCHEMY_DATABASE_URI: "mariadb+pymysql://ki:{{ ki_db_password }}@ki_db:3306/ki" - FLASK_ENV: "development" - KI_LOGLEVEL: "10" + FLASK_ENV: "{{ ki_flask_env }}" + KI_LOGLEVEL: "{{ ki_loglevel }}" KI_AUTH: "ldap" KI_LDAP_URL: "{{ ki_ldap_url }}" KI_LDAP_AUTH_USER: "{{ ki_ldap_auth_user }}" -- 2.30.2