From f97b24dbddb59b7489f9cf3ec9b8b8963d00ed0a Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Tue, 28 Jan 2025 15:28:50 +0100 Subject: [PATCH] Add option unix_socket_directories --- defaults/main.yml | 1 + templates/postgresql.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 41ef918..4ad73f3 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,6 +3,7 @@ postgresql: enable: True keep_days: 3 listen_addresses: localhost + unix_socket_directories: /var/run/postgresql max_connections: 100 shared_buffers: 128MB allowed_hosts: {} diff --git a/templates/postgresql.conf.j2 b/templates/postgresql.conf.j2 index 311dc82..18213fb 100644 --- a/templates/postgresql.conf.j2 +++ b/templates/postgresql.conf.j2 @@ -64,7 +64,7 @@ listen_addresses = '{{ postgresql.listen_addresses }}' # what IP address(es) to port = 5432 # (change requires restart) max_connections = {{ postgresql.max_connections }} # (change requires restart) #superuser_reserved_connections = 3 # (change requires restart) -unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories +unix_socket_directories = '{{ postgresql.unix_socket_directories }}' # comma-separated list of directories # (change requires restart) #unix_socket_group = '' # (change requires restart) #unix_socket_permissions = 0777 # begin with 0 to use octal notation