Skip to content

Commit 07ab014

Browse files
committed
refactor(postgresql.conf): configure postgresql.conf to use 'include_dir' directive and move logging.conf into the postgresql-customer dir
1 parent fe64b08 commit 07ab014

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ansible/files/postgresql_config/postgresql.conf.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,6 @@ effective_cache_size = 128MB
428428
# REPORTING AND LOGGING
429429
#------------------------------------------------------------------------------
430430

431-
include = '/etc/postgresql/logging.conf'
432-
433431
# These are relevant when logging to syslog:
434432
#syslog_facility = 'LOCAL0'
435433
#syslog_ident = 'postgres'
@@ -750,7 +748,7 @@ jit_provider = 'llvmjit' # JIT library to use
750748
# default postgresql.conf. Note that these are directives, not variable
751749
# assignments, so they can usefully be given more than once.
752750

753-
#include_dir = '...' # include files ending in '.conf' from
751+
include_dir = '/etc/postgresql-custom' # include files ending in '.conf' from
754752
# a directory, e.g., 'conf.d'
755753
#include_if_exists = '...' # include file only if it exists
756754
#include = '...' # include file

ansible/tasks/finalize-ami.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: PG logging conf
22
template:
33
src: files/postgresql_config/postgresql-csvlog.conf
4-
dest: /etc/postgresql/logging.conf
4+
dest: /etc/postgresql-custom/logging.conf
55
group: postgres
66

77
- name: UFW - Allow SSH connections

0 commit comments

Comments
 (0)