File tree Expand file tree Collapse file tree 8 files changed +23
-3
lines changed Expand file tree Collapse file tree 8 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -903,6 +903,7 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout
903
903
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/supautils.conf
904
904
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
905
905
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/${postgresql_major}/bin/pgsodium_getkey.sh
906
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/read-replica.conf
906
907
COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/wal-g.conf
907
908
COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
908
909
COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
Original file line number Diff line number Diff line change @@ -924,6 +924,7 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout
924
924
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/supautils.conf
925
925
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
926
926
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/${postgresql_major}/bin/pgsodium_getkey.sh
927
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/read-replica.conf
927
928
COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/wal-g.conf
928
929
COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
929
930
COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
Original file line number Diff line number Diff line change
1
+ # hot_standby = on
2
+ # restore_command = '/usr/bin/admin-mgr wal-fetch %f %p >> /var/log/wal-g/wal-fetch.log 2>&1'
3
+ # recovery_target_timeline = 'latest'
4
+
5
+ # primary_conninfo = 'host=localhost port=6543 user=replication'
Original file line number Diff line number Diff line change @@ -763,6 +763,9 @@ jit_provider = 'llvmjit' # JIT library to use
763
763
# WAL-G specific configurations
764
764
#include = '/etc/postgresql-custom/wal-g.conf'
765
765
766
+ # read replica specific configurations
767
+ include = '/etc/postgresql-custom/read-replica.conf'
768
+
766
769
# supautils specific configurations
767
770
#include = '/etc/postgresql-custom/supautils.conf'
768
771
Original file line number Diff line number Diff line change 100
100
dest : /etc/postgresql/pg_ident.conf
101
101
group : postgres
102
102
103
+ # Add custom config for read replicas set up
104
+ - name : Move custom read-replica.conf file to /etc/postgresql-custom/read-replica.conf
105
+ template :
106
+ src : " files/postgresql_config/custom_read_replica.conf.j2"
107
+ dest : /etc/postgresql-custom/read-replica.conf
108
+ mode : 0664
109
+ owner : postgres
110
+ group : postgres
111
+
103
112
# Install extensions before init
104
113
- name : Install Postgres extensions
105
114
import_tasks : tasks/setup-docker.yml
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ postgres_exporter_release_checksum:
41
41
arm64 : sha256:29ba62d538b92d39952afe12ee2e1f4401250d678ff4b354ff2752f4321c87a0
42
42
amd64 : sha256:cb89fc5bf4485fb554e0d640d9684fae143a4b2d5fa443009bd29c59f9129e84
43
43
44
- adminapi_release : 0.51 .0
45
- adminmgr_release : 0.10.2
44
+ adminapi_release : 0.54 .0
45
+ adminmgr_release : 0.13.1
46
46
47
47
# Postgres Extensions
48
48
postgis_release : " 3.3.2"
Original file line number Diff line number Diff line change 1
- postgres-version = " 15.1.0.134-wrappers "
1
+ postgres-version = " 15.1.0.134-rc-1 "
Original file line number Diff line number Diff line change @@ -845,6 +845,7 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/postgresql-stdout
845
845
COPY --chown=postgres:postgres ansible/files/postgresql_config/supautils.conf.j2 /etc/postgresql-custom/supautils.conf
846
846
COPY --chown=postgres:postgres ansible/files/postgresql_extension_custom_scripts /etc/postgresql-custom/extension-custom-scripts
847
847
COPY --chown=postgres:postgres ansible/files/pgsodium_getkey_urandom.sh.j2 /usr/lib/postgresql/${postgresql_major}/bin/pgsodium_getkey.sh
848
+ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_read_replica.conf.j2 /etc/postgresql-custom/read-replica.conf
848
849
COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.j2 /etc/postgresql-custom/wal-g.conf
849
850
COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
850
851
COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
You can’t perform that action at this time.
0 commit comments