[re2o] Select optional apps

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-06-22 15:26:05 +02:00
parent 16cf470df5
commit 55c46352f9
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 7 additions and 1 deletions

View File

@ -19,3 +19,7 @@ glob_re2o:
database:
password: "{{ vault.re2o_db_password }}"
uri: "172.16.10.1"
optional_apps:
- api
- captcha
- prefix_delegation

View File

@ -21,3 +21,5 @@ loc_re2o:
database:
password: "{{ vault.re2o_db_password }}"
uri: "{{ query('ldap', 'ip', 'gulp', 'cachan-adm') | ipv4 | first }}"
optional_apps: []

View File

@ -93,6 +93,6 @@ GID_RANGES = {
OPTIONNAL_APPS_RE2O = ()
# Some Django apps you want to add in you local project
OPTIONNAL_APPS = OPTIONNAL_APPS_RE2O + ('api', 'captcha', 'prefix_delegation',)
OPTIONNAL_APPS = OPTIONNAL_APPS_RE2O + ({% for app in re2o.optional_apps %}'{{ app }}', {% endfor %})
PREFIX_DELEGATION_OWNER = 'users.User'