mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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
8 lines
355 B
Django/Jinja
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') }}',
|
|
];
|