lab-ansible/roles/postgresql/templates/postgresql.conf.j2
2023-12-23 17:41:57 +01:00

26 lines
609 B
Django/Jinja

# THIS FILE IS MANAGED BY ANSIBLE
# code: language=ansible-jinja
# Common
listen_addresses = '*'
max_connections = 100
shared_buffers = 128MB
dynamic_shared_memory_type = posix
password_encryption = scram-sha-256
datestyle = 'iso, mdy'
timezone = '{{ timezone }}'
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 = on
archive_command = 'test ! -f {{ postgresql_wal_archive }}/%f && cp %p {{ postgresql_wal_archive }}/%f'