working stokes setup
This commit is contained in:
@@ -6,15 +6,7 @@ let
|
||||
# }) {};
|
||||
pkgs = import <nixpkgs> {};
|
||||
|
||||
nodes =
|
||||
with builtins;
|
||||
let nodes = genList (n: n + 1) 8; in
|
||||
map (n: ({ name = "c0-${toString n}"; address = "10.1.61.10${toString n}"; })) nodes;
|
||||
|
||||
stokes = import ./frontend.nix {
|
||||
inherit pkgs;
|
||||
inherit nodes;
|
||||
};
|
||||
nodes = import ./nodes.nix;
|
||||
|
||||
compute = {
|
||||
# deployment.tags = [ "compute" ];
|
||||
@@ -22,7 +14,7 @@ let
|
||||
fileSystems = {
|
||||
"/stokes" = {
|
||||
device = "10.1.63.100:/home";
|
||||
fsType = "nfs";
|
||||
fsType = "nfs4";
|
||||
options = [
|
||||
"soft"
|
||||
"defaults"
|
||||
@@ -30,16 +22,6 @@ let
|
||||
"x-systemd.automount"
|
||||
];
|
||||
};
|
||||
"/opt" = {
|
||||
device = "10.1.63.80:/opt";
|
||||
fsType = "nfs";
|
||||
options = [ "soft" "rdma" "defaults" ];
|
||||
};
|
||||
"/data" = {
|
||||
device = "10.1.63.80:/data";
|
||||
fsType = "nfs";
|
||||
options = [ "soft" "rdma" "defaults" ];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.automounts = [
|
||||
@@ -63,8 +45,14 @@ let
|
||||
# k8s = { inherit etcdCluster; };
|
||||
};
|
||||
|
||||
deployment.targetHost = host.address;
|
||||
|
||||
# services.udev.extraRules = ''
|
||||
# KERNEL=="ibp65s0", SUBSYSTEM=="net", ATTR{create_child}:="0x2222"
|
||||
# '';
|
||||
|
||||
node = {
|
||||
i40efix = true;
|
||||
# i40efix = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
@@ -82,7 +70,7 @@ let
|
||||
} ];
|
||||
|
||||
};
|
||||
interfaces."ibp65s0.2222" = {
|
||||
interfaces.ibp65s0 = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [ {
|
||||
address = ipoib;
|
||||
@@ -94,7 +82,8 @@ let
|
||||
}
|
||||
// compute;
|
||||
};
|
||||
in {
|
||||
in builtins.foldl' (a: n: a // mkCompute n) {} nodes
|
||||
#{
|
||||
## morph
|
||||
# network = {
|
||||
# inherit pkgs;
|
||||
@@ -104,6 +93,6 @@ in {
|
||||
# };
|
||||
# };
|
||||
|
||||
inherit stokes;
|
||||
} // builtins.foldl' (a: n: a // mkCompute n) {} nodes
|
||||
# inherit stokes;
|
||||
#} // builtins.foldl' (a: n: a // mkCompute n) {} nodes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user