mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
- Introduced dedicated variables in vars/main.yml: * TAIGA_FLAVOR_TAIGAIO * TAIGA_TAIGAIO_ENABLED - Replaced inline Jinja2 get_app_conf checks with TAIGA_TAIGAIO_ENABLED for consistency in tasks, docker-compose template and env file. - Adjusted env.j2 to use TAIGA_TAIGAIO_ENABLED instead of direct flavor checks. - Enabled css by default (true instead of false). - Cleaned up spacing/indentation in config and env. This improves readability, reduces duplicated logic, and makes it easier to maintain both OIDC flavors (robrotheram, taigaio). Conversation: https://chatgpt.com/share/68af65b3-27c0-800f-964f-ff4f2d96ff5d
24 lines
1.5 KiB
YAML
24 lines
1.5 KiB
YAML
# General
|
|
application_id: "web-app-taiga"
|
|
database_type: "postgres"
|
|
|
|
# Docker
|
|
docker_repository_address: "https://github.com/taigaio/taiga-docker"
|
|
docker_pull_git_repository: true
|
|
|
|
# Taiga
|
|
TAIGA_OIDC_ENABLED: "{{ applications | get_app_conf(application_id, 'features.oidc') }}"
|
|
TAIGA_FLAVOR_ROBROTHERAM: "{{ applications | get_app_conf(application_id, 'oidc.flavor') == 'robrotheram' }}"
|
|
TAIGA_ROBROTHERAM_ENABLED: "{{ TAIGA_OIDC_ENABLED and TAIGA_FLAVOR_ROBROTHERAM }}"
|
|
TAIGA_FLAVOR_TAIGAIO: "{{ applications | get_app_conf(application_id, 'oidc.flavor') == 'taigaio' }}"
|
|
TAIGA_TAIGAIO_ENABLED: "{{ TAIGA_OIDC_ENABLED and TAIGA_FLAVOR_TAIGAIO }}"
|
|
TAIGA_EMAIL_BACKEND: "{{ 'smtp' if SYSTEM_EMAIL.SMTP else 'console' }}" ## use an SMTP server or display the emails in the console (either "smtp" or "console")
|
|
TAIGA_DOCKER_COMPOSE_INIT: "{{ [ docker_compose.directories.instance,'docker-compose-inits.yml.j2' ] | path_join }}"
|
|
TAIGA_DOCKER_IMAGE_BACKEND: "{{ 'robrotheram/taiga-back-openid' if TAIGA_ROBROTHERAM_ENABLED else 'taigaio/taiga-back' }}"
|
|
TAIGA_DOCKER_IMAGE_FRONTEND: "{{ 'robrotheram/taiga-front-openid' if TAIGA_ROBROTHERAM_ENABLED else 'taigaio/taiga-front' }}"
|
|
TAIGA_FRONTEND_CONF_PATH: "{{ [ docker_compose.directories.config,'conf.json' ] | path_join }}"
|
|
TAIGA_SETTING_FILES:
|
|
- urls
|
|
- local
|
|
|
|
TAIGA_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.taiga.version') }}" |