aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-20 00:05:44 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-20 00:05:44 +0200
commit8183b8bb5a16d0a4c41ef1d0b821b5cbbf7af37d (patch)
tree55807f2244025c407264d6fd048f0f38c291d948
parent9de2987542f58c3c2b68ad234f9ebe907221098f (diff)
downloadNix-8183b8bb5a16d0a4c41ef1d0b821b5cbbf7af37d.tar.gz
Nix-8183b8bb5a16d0a4c41ef1d0b821b5cbbf7af37d.tar.zst
Nix-8183b8bb5a16d0a4c41ef1d0b821b5cbbf7af37d.zip
Add backup-2 to psql replication
-rw-r--r--modules/private/databases/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/private/databases/default.nix b/modules/private/databases/default.nix
index 3f7a44b..b2739bf 100644
--- a/modules/private/databases/default.nix
+++ b/modules/private/databases/default.nix
@@ -1,4 +1,4 @@
1{ lib, config, myconfig, ... }: 1{ lib, config, myconfig, nodes, ... }:
2let 2let
3 cfg = config.myServices.databases; 3 cfg = config.myServices.databases;
4in 4in
@@ -54,6 +54,10 @@ in
54 ip4 = [myconfig.env.servers.backup-1.ips.main.ip4]; 54 ip4 = [myconfig.env.servers.backup-1.ips.main.ip4];
55 ip6 = myconfig.env.servers.backup-1.ips.main.ip6; 55 ip6 = myconfig.env.servers.backup-1.ips.main.ip6;
56 }; 56 };
57 backup-2 = {
58 ip4 = [myconfig.env.servers.backup-2.ips.main.ip4];
59 ip6 = myconfig.env.servers.backup-2.ips.main.ip6;
60 };
57 }; 61 };
58 enable = true; 62 enable = true;
59 }; 63 };