From cafbd47fe994acf890be87f7d1384a23dc7b319a Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Wed, 24 Mar 2021 14:02:46 +0100 Subject: [PATCH] [constellation] Front web can be disabled Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- group_vars/constellation.yml | 1 + .../constellation/templates/constellation/settings_local.py.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/group_vars/constellation.yml b/group_vars/constellation.yml index 8e223641..76cd299a 100644 --- a/group_vars/constellation.yml +++ b/group_vars/constellation.yml @@ -20,6 +20,7 @@ glob_constellation: user: 'constellation' password: "{{ vault.constellation_django_db_password }}" name: 'constellation' + front: True applications: - 'access' - 'billing' diff --git a/roles/constellation/templates/constellation/settings_local.py.j2 b/roles/constellation/templates/constellation/settings_local.py.j2 index 2ea12f80..d4c6a79c 100644 --- a/roles/constellation/templates/constellation/settings_local.py.j2 +++ b/roles/constellation/templates/constellation/settings_local.py.j2 @@ -20,6 +20,9 @@ LOCAL_APPS = [ {% endfor %} ] +# Activate this option if a web front is needed +USE_FRONT = {{ constellation.front }} + # The time zone the server is runned in TIME_ZONE = 'Europe/Paris' -- GitLab