aboutsummaryrefslogtreecommitdiff
path: root/modules/private/system/backup-2.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-05 00:51:45 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-05 00:51:45 +0100
commit9f6a78629aad1d22dc8b928860fd05eb40f07352 (patch)
tree25c918ccd80eeb3e04d5d0c3ed4815ff3de5dcae /modules/private/system/backup-2.nix
parent304a7dac48405d63a5d20466d4afc7ba04d11164 (diff)
downloadNix-9f6a78629aad1d22dc8b928860fd05eb40f07352.tar.gz
Nix-9f6a78629aad1d22dc8b928860fd05eb40f07352.tar.zst
Nix-9f6a78629aad1d22dc8b928860fd05eb40f07352.zip
Add mysql replication
Diffstat (limited to 'modules/private/system/backup-2.nix')
-rw-r--r--modules/private/system/backup-2.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/private/system/backup-2.nix b/modules/private/system/backup-2.nix
index 3120a57..0e94a1a 100644
--- a/modules/private/system/backup-2.nix
+++ b/modules/private/system/backup-2.nix
@@ -61,6 +61,22 @@
61 }; 61 };
62 }; 62 };
63 }; 63 };
64 mariadb = {
65 enable = true;
66 base = "/backup2";
67 hosts = {
68 eldiron = {
69 serverId = 2;
70 # mysql resolves "backup-2" host and checks the ip, but uses /etc/hosts which only contains ip4
71 host = myconfig.env.servers.eldiron.ips.main.ip4;
72 port = "3306";
73 user = "backup-2";
74 password = myconfig.env.ldap.backup-2.password;
75 dumpUser = "root";
76 dumpPassword = myconfig.env.databases.mysql.systemUsers.root;
77 };
78 };
79 };
64 }; 80 };
65 81
66 # This value determines the NixOS release with which your system is 82 # This value determines the NixOS release with which your system is