Fix srv records

This commit is contained in:
Sandro - 2024-04-20 23:57:34 +02:00
parent 4e848d27f8
commit e36881f687
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 11 additions and 4 deletions

View File

@ -7,8 +7,15 @@ in
ipv6Router = "cls-gw";
domainName = "cluster.zentralwerk.org";
extraRecords = map (host: {
data = "1 1 6789 ${host}";
name = "_ceph-mon._tcp";
data = {
service = "ceph-mon";
proto = "tcp";
priority = 1;
weight = 1;
port = 6789;
target = host;
};
name = "@";
type = "SRV";
}) cephMonServers
++

View File

@ -178,7 +178,7 @@ let
type = enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" ];
};
data = mkOption {
type = str;
type = oneOf [ str (attrsOf (oneOf [ int str ])) ];
};
};
});

View File

@ -35,7 +35,7 @@ in
type = types.enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" "PTR" ];
};
data = mkOption {
type = types.str;
type = types.oneOf [ types.str (types.attrsOf (types.oneOf [ types.int types.str ]))];
};
};