aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/backup/deploy
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-04 16:48:22 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-04 16:48:22 +0200
commite375304c388948efcb8cfcb45d8a8288a635a766 (patch)
tree90f2e0723c8fa785d0a5612994de3765e204a533 /cluster/prod/app/backup/deploy
parentf3cd2e98b4bd26294464c5152b7082fc8a6b9ff2 (diff)
downloadnixcfg-e375304c388948efcb8cfcb45d8a8288a635a766.tar.gz
nixcfg-e375304c388948efcb8cfcb45d8a8288a635a766.zip
orient SoGo and Synapse to closest psql-proxy; psql backup anywhere
Diffstat (limited to 'cluster/prod/app/backup/deploy')
-rw-r--r--cluster/prod/app/backup/deploy/backup-weekly.hcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/cluster/prod/app/backup/deploy/backup-weekly.hcl b/cluster/prod/app/backup/deploy/backup-weekly.hcl
index 36a507a..6a00507 100644
--- a/cluster/prod/app/backup/deploy/backup-weekly.hcl
+++ b/cluster/prod/app/backup/deploy/backup-weekly.hcl
@@ -1,5 +1,5 @@
job "backup_weekly" {
- datacenters = ["orion"]
+ datacenters = ["orion", "neptune", "bespin"]
type = "batch"
priority = "60"
@@ -30,7 +30,7 @@ AWS_ENDPOINT=s3.deuxfleurs.shirokumo.net
AWS_ACCESS_KEY_ID={{ key "secrets/postgres/backup/aws_access_key_id" }}
AWS_SECRET_ACCESS_KEY={{ key "secrets/postgres/backup/aws_secret_access_key" }}
CRYPT_PUBLIC_KEY={{ key "secrets/postgres/backup/crypt_public_key" }}
-PSQL_HOST=psql-proxy.service.prod.consul
+PSQL_HOST={{ env "meta.site" }}.psql-proxy.service.prod.consul
PSQL_USER={{ key "secrets/postgres/keeper/pg_repl_username" }}
PGPASSWORD={{ key "secrets/postgres/keeper/pg_repl_pwd" }}
EOH