cluster/services/idm: add dns records

This commit is contained in:
Max Headroom 2023-12-03 23:04:15 +01:00
parent 93ceb5c0ea
commit b24f73bc4b

View file

@ -34,4 +34,22 @@
];
};
};
dns.records = let
serverAddrsPublic = map
(node: depot.hours.${node}.interfaces.primary.addrPublic)
config.services.idm.nodes.server;
serverAddrsInternal = map
(node: config.vars.mesh.${node}.meshIp)
config.services.idm.nodes.server;
in {
idm = {
type = "A";
target = serverAddrsPublic;
};
"idm-ldap.internal" = {
type = "A";
target = serverAddrsInternal;
};
};
}