13 lines
372 B
Nix
13 lines
372 B
Nix
with builtins;
|
|
let nodes = genList (n: n + 1) 8; in
|
|
map (n: (
|
|
rec {
|
|
idx = 120 + n;
|
|
name = "c1-${toString n}";
|
|
target = "10.255.241.${toString (idx + 100)}";
|
|
address = "10.255.241.${toString idx}";
|
|
ipoib = "10.255.243.${toString idx}";
|
|
gbe100 = "10.255.244.${toString idx}";
|
|
pubkey = ./. + "/ssh_host_key.d/c1-${toString n}.pub";
|
|
})) nodes
|