+ connection = "postgresql://backup-2:${config.hostEnv.ldap.password}@eldiron.immae.eu";
+ package = pkgs.postgresql;
+ };
+ };
+ };
+ mariadb = {
+ enable = true;
+ base = "/backup2";
+ hosts = {
+ eldiron = {
+ serverId = 2;
+ # mysql resolves "backup-2" host and checks the ip, but uses /etc/hosts which only contains ip4
+ host = config.myEnv.servers.eldiron.ips.main.ip4;
+ port = "3306";
+ user = "backup-2";
+ password = config.hostEnv.ldap.password;
+ dumpUser = "root";
+ dumpPassword = config.myEnv.databases.mysql.systemUsers.root;
+ };
+ };
+ };
+ redis = {
+ enable = true;
+ base = "/backup2";
+ hosts = {
+ eldiron = {
+ host = "127.0.0.1";
+ port = "16379";
+ };
+ };
+ };
+ openldap = {
+ enable = true;
+ base = "/backup2";
+ hosts = {
+ eldiron = {
+ url = "ldaps://${config.myEnv.ldap.host}:636";
+ dn = config.myEnv.ldap.replication_dn;
+ password = config.myEnv.ldap.replication_pw;
+ base = config.myEnv.ldap.base;