Fix srv records
This commit is contained in:
parent
4e848d27f8
commit
e36881f687
|
@ -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
|
||||
++
|
||||
|
|
|
@ -178,7 +178,7 @@ let
|
|||
type = enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" ];
|
||||
};
|
||||
data = mkOption {
|
||||
type = str;
|
||||
type = oneOf [ str (attrsOf (oneOf [ int str ])) ];
|
||||
};
|
||||
};
|
||||
});
|
||||
|
|
|
@ -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 ]))];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue