File tree Expand file tree Collapse file tree 8 files changed +33
-8
lines changed Expand file tree Collapse file tree 8 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j
163
163
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
164
164
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
165
165
COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
166
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
167
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/pgcron.conf /etc/postgresql-custom/pg_cron.conf
166
168
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
167
169
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
168
170
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j
163
163
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
164
164
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
165
165
COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
166
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
167
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_cron.conf /etc/postgresql-custom/pg_cron.conf
166
168
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
167
169
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
168
170
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
Original file line number Diff line number Diff line change @@ -163,6 +163,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql.conf.j
163
163
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_hba.conf.j2 /etc/postgresql/pg_hba.conf
164
164
COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_ident.conf.j2 /etc/postgresql/pg_ident.conf
165
165
COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout-log.conf /etc/postgresql-custom/00-logging.conf
166
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/autoexplain.conf /etc/postgresql-custom/auto_explain.conf
167
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/pg_cron.conf /etc/postgresql-custom/pg_cron.conf
166
168
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/05-supautils.conf
167
169
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
168
170
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/bin/pgsodium_getkey.sh
Original file line number Diff line number Diff line change
1
+ # auto_explain
2
+
3
+ auto_explain.log_min_duration = 10s
Original file line number Diff line number Diff line change
1
+ # pg_cron
2
+
3
+ cron.database_name = 'postgres'
Original file line number Diff line number Diff line change @@ -159,11 +159,3 @@ jit_provider = 'llvmjit' # JIT library to use
159
159
# assignments, so they can usefully be given more than once.
160
160
161
161
include_dir = '/etc/postgresql-custom' # include files ending in '.conf' from a directory, e.g., 'conf.d'
162
-
163
- #------------------------------------------------------------------------------
164
- # CUSTOMIZED OPTIONS
165
- #------------------------------------------------------------------------------
166
-
167
- # Add settings for extensions here
168
- auto_explain.log_min_duration = 10s
169
- cron.database_name = 'postgres'
Original file line number Diff line number Diff line change 4
4
dest : /etc/postgresql-custom/00-logging.conf
5
5
group : postgres
6
6
7
+ - name : auto_explain and pg_cron confs
8
+ ansible.builtin.template :
9
+ dest : " /etc/postgresql-custom/{{ ext_item }}.conf"
10
+ group : ' postgres'
11
+ src : " files/postgresql_config/{{ ext_item | split('_') | join('') }}.conf"
12
+ loop :
13
+ - auto_explain
14
+ - pg_cron
15
+ loop_control :
16
+ loop_var : ' ext_item'
17
+
7
18
- name : UFW - Allow SSH connections
8
19
ufw :
9
20
rule : allow
Original file line number Diff line number Diff line change 44
44
name = "00-logging.conf" ;
45
45
path = ../../ansible/files/postgresql_config/postgresql-csvlog.conf ;
46
46
} ;
47
+ autoexplainConfigFile = builtins . path {
48
+ name = "auto_explain.conf" ;
49
+ path = ../../ansible/files/postgresql_config/autoexplain.conf ;
50
+ } ;
51
+ pgcronConfigFile = builtins . path {
52
+ name = "pg_cron.conf" ;
53
+ path = ../../ansible/files/postgresql_config/pg_cron.conf ;
54
+ } ;
47
55
readReplicaConfigFile = builtins . path {
48
56
name = "readreplica.conf" ;
49
57
path = ../../ansible/files/postgresql_config/custom_read_replica.conf.j2 ;
113
121
cp ${ paths . supautilsConfigFile } $out/etc/postgresql-custom/05-supautils.conf || { echo "Failed to copy supautils.conf"; exit 1; }
114
122
cp ${ paths . pgconfigFile } $out/etc/postgresql/postgresql.conf || { echo "Failed to copy postgresql.conf"; exit 1; }
115
123
cp ${ paths . loggingConfigFile } $out/etc/postgresql-custom/00-logging.conf || { echo "Failed to copy logging.conf"; exit 1; }
124
+ cp ${ paths . autoexplainConfigFile } $out/etc/postgresql-custom/auto_explain.conf || { echo "Failed to copy auto_explain.conf"; exit 1; }
125
+ cp ${ paths . pgcronConfigFile } $out/etc/postgresql-custom/pg_cron.conf || { echo "Failed to copy pg_cron.conf"; exit 1; }
116
126
cp ${ paths . readReplicaConfigFile } $out/etc/postgresql-custom/04-read-replica.conf || { echo "Failed to copy read-replica.conf"; exit 1; }
117
127
cp ${ paths . pgHbaConfigFile } $out/etc/postgresql/pg_hba.conf || { echo "Failed to copy pg_hba.conf"; exit 1; }
118
128
cp ${ paths . pgIdentConfigFile } $out/etc/postgresql/pg_ident.conf || { echo "Failed to copy pg_ident.conf"; exit 1; }
You can’t perform that action at this time.
0 commit comments