mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-22 07:52:25 +02:00
8 lines
572 B
YAML
8 lines
572 B
YAML
database_instance: "{{ 'central-' + database_type if applications[application_id].features.database | bool else application_id }}"
|
|
database_host: "{{ 'central-' + database_type if applications[application_id].features.database | bool else 'database' }}"
|
|
database_name: "{{ application_id }}"
|
|
database_username: "{{ application_id }}"
|
|
database_port: "{{ 3306 if database_type == 'mariadb' else 5432 }}"
|
|
database_env: "{{docker_compose.directories.env}}{{database_type}}.env"
|
|
|
|
# Don't set application_id . It would conflict with central database logic |