homelab/src/forgejo/ansible/proxmox/templates/pgpass.j2
Russell Seymour 1250c9cef6
Some checks are pending
deploy / deploy (push) Waiting to run
Initial checkin of code for managing homelab
2026-08-24 20:52:36 +01:00

8 lines
538 B
Django/Jinja

{# Rendered by Ansible — see ../install.yml. Lets the nightly dump job
authenticate without the password appearing in a command line or a systemd
unit. Mode 0600, owned by the Forgejo service user; libpq refuses to read it
otherwise.
Format is host:port:database:user:password, with literal backslashes and
colons in the password escaped. #}
{{ app_config.DB_HOST }}:{{ app_config.DB_PORT }}:{{ app_config.DB_NAME }}:{{ app_config.DB_USER }}:{{ vault_secrets.DB_PASSWORD | replace('\\', '\\\\') | replace(':', '\\:') }}