cluster/services/attic: add dns records
This commit is contained in:
parent
6d22f7bdb7
commit
9abd4b6c0a
1 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
{ config, depot, ... }:
|
||||
|
||||
{
|
||||
services.attic = {
|
||||
nodes = {
|
||||
|
@ -18,4 +20,13 @@
|
|||
allow.attic = [ "read" "write" ];
|
||||
};
|
||||
};
|
||||
|
||||
dns.records = let
|
||||
serverAddrs = map
|
||||
(node: depot.hours.${node}.interfaces.primary.addrPublic)
|
||||
config.services.attic.nodes.server;
|
||||
in {
|
||||
cache-api.target = serverAddrs;
|
||||
cache.target = serverAddrs;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue