Files
computer-playbook/roles/web-app-nextcloud/templates/config/database.config.php.j2
kevinveenbirkenbach 5e33e70892 refactor(database lookup usage): switch conditionals to enabled flag
Replace indirect type!='' checks with explicit database.enabled lookups
to improve semantics, readability, and alignment with strict lookup API.

https://chatgpt.com/share/6985d642-b40c-800f-9cdf-ed54fc484a92
2026-02-06 13:25:37 +01:00

8 lines
355 B
Django/Jinja

<?php
return [
'dbhost' => '{{ lookup('database', application_id, 'host') }}:{{ lookup('database', application_id, 'port') }}',
'dbname' => '{{ lookup('database', application_id, 'name') }}',
'dbuser' => '{{ lookup('database', application_id, 'username') }}',
'dbpassword' => '{{ lookup('database', application_id, 'password') }}',
];