aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-03-09 16:54:19 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-03-09 16:54:19 +0100
commita1c6c33d735761f4897dd64d2145f21913ad84a6 (patch)
tree846f7d28ab611bcb72209974edbedfd61face69d /app
parent1322dae8dad83a5d44d84d0cbbb685f71d3a3ff4 (diff)
downloadinfrastructure-a1c6c33d735761f4897dd64d2145f21913ad84a6.tar.gz
infrastructure-a1c6c33d735761f4897dd64d2145f21913ad84a6.zip
Maintenance du 2022-03-09
Diffstat (limited to 'app')
-rw-r--r--app/postgres/deploy/postgres.hcl6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/postgres/deploy/postgres.hcl b/app/postgres/deploy/postgres.hcl
index 6672644..bf68a59 100644
--- a/app/postgres/deploy/postgres.hcl
+++ b/app/postgres/deploy/postgres.hcl
@@ -93,6 +93,12 @@ job "postgres13.3" {
"--pg-su-password", "${PG_SU_PWD}",
"--pg-repl-username", "${PG_REPL_USER}",
"--pg-repl-password", "${PG_REPL_PWD}",
+ /*
+ The postgres daemon accepts 0.0.0.0, ::, and * here but not Stolon.
+ Otherwise you will have the following error and your cluster will be broken (no replication)
+ WARN cmd/keeper.go:1979 provided --pg-listen-address "*": is not an ip address but a hostname. This will be advertized to the other components and may have undefined behaviors if resolved differently by other hosts
+ WARN cmd/keeper.go:1984 cannot resolve provided --pg-listen-address "*": lookup *: no such host
+ */
"--pg-listen-address", "${attr.unique.network.ip-address}",
"--pg-port", "${NOMAD_PORT_psql_port}",
"--pg-bin-path", "/usr/lib/postgresql/13/bin/"