Fix srv records
This commit is contained in:
parent
4e848d27f8
commit
e36881f687
|
@ -7,8 +7,15 @@ in
|
||||||
ipv6Router = "cls-gw";
|
ipv6Router = "cls-gw";
|
||||||
domainName = "cluster.zentralwerk.org";
|
domainName = "cluster.zentralwerk.org";
|
||||||
extraRecords = map (host: {
|
extraRecords = map (host: {
|
||||||
data = "1 1 6789 ${host}";
|
data = {
|
||||||
name = "_ceph-mon._tcp";
|
service = "ceph-mon";
|
||||||
|
proto = "tcp";
|
||||||
|
priority = 1;
|
||||||
|
weight = 1;
|
||||||
|
port = 6789;
|
||||||
|
target = host;
|
||||||
|
};
|
||||||
|
name = "@";
|
||||||
type = "SRV";
|
type = "SRV";
|
||||||
}) cephMonServers
|
}) cephMonServers
|
||||||
++
|
++
|
||||||
|
|
|
@ -178,7 +178,7 @@ let
|
||||||
type = enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" ];
|
type = enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" ];
|
||||||
};
|
};
|
||||||
data = mkOption {
|
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" ];
|
type = types.enum [ "A" "AAAA" "MX" "SRV" "CNAME" "TXT" "PTR" ];
|
||||||
};
|
};
|
||||||
data = mkOption {
|
data = mkOption {
|
||||||
type = types.str;
|
type = types.oneOf [ types.str (types.attrsOf (types.oneOf [ types.int types.str ]))];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue