From b6085676483fc8308fa4a1954e3fb18052186e49 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sun, 7 Mar 2021 11:43:46 +0100 Subject: Add a new parameter to stolon --- app/backup/deploy/backup-manual.hcl | 63 ------------------------------------- app/backup/deploy/backup-matrix.hcl | 63 +++++++++++++++++++++++++++++++++++++ app/postgres/deploy/postgres.hcl | 3 +- 3 files changed, 65 insertions(+), 64 deletions(-) delete mode 100644 app/backup/deploy/backup-manual.hcl create mode 100644 app/backup/deploy/backup-matrix.hcl diff --git a/app/backup/deploy/backup-manual.hcl b/app/backup/deploy/backup-manual.hcl deleted file mode 100644 index 08b3784..0000000 --- a/app/backup/deploy/backup-manual.hcl +++ /dev/null @@ -1,63 +0,0 @@ -job "backup_manual" { - datacenters = ["dc1"] - - type = "batch" - - task "backup-matrix" { - driver = "docker" - - config { - image = "superboum/backup_matrix:2" - volumes = [ - "secrets/id_ed25519:/root/.ssh/id_ed25519", - "secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub", - "secrets/known_hosts:/root/.ssh/known_hosts", - "/mnt/glusterfs/chat/matrix/synapse/media:/mnt/glusterfs/chat/matrix/synapse/media" - ] - network_mode = "host" - } - - env { - CONSUL_HTTP_ADDR = "http://consul.service.2.cluster.deuxfleurs.fr:8500" - } - - template { - data = <