cluster/services/idm: add dns records
This commit is contained in:
parent
93ceb5c0ea
commit
b24f73bc4b
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue