lab-ansible/roles/postgresql/templates/postgresql.conf.j2
2023-12-29 19:07:08 +01:00

27 lines
637 B
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
# Common
listen_addresses = '*'
max_connections = 100
shared_buffers = 128MB
dynamic_shared_memory_type = posix
password_encryption = scram-sha-256
datestyle = 'iso, mdy'
timezone = '{{ timezone }}'
logging_collector = on
log_timezone = '{{ timezone }}'
lc_messages = 'en_US.utf8'
lc_monetary = 'en_US.utf8'
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
# WAL settings
wal_level = replica
max_wal_size = 2GB
min_wal_size = 80MB
# Archiving
archive_mode = off
archive_command = 'test ! -f {{ postgresql_wal_archive }}/%f && cp %p {{ postgresql_wal_archive }}/%f'