feat: move /home and /opt to cephfs and tweak mounts

This commit is contained in:
2025-09-23 12:11:53 +02:00
parent 8894339216
commit 82a5328d7f
5 changed files with 70 additions and 75 deletions

View File

@@ -11,26 +11,6 @@ let
compute = {
deployment.tags = [ "compute" "c0" "cluster" ];
fileSystems = {
"/users" = {
device = "172.16.239.222:/home";
fsType = "nfs4";
options = [
"soft"
"defaults"
"noauto"
"x-systemd.automount"
];
};
};
systemd.automounts = [
{
where = "/users";
wantedBy = [ "default.target" ];
}
];
};
mkCompute = host:
@@ -46,9 +26,9 @@ let
automount.enable = true;
users = true;
opt = true;
work = false;
data = false;
ceph = false;
work = true;
data = true;
ceph = true;
};
};

View File

@@ -4,7 +4,7 @@ let
map (n: (
rec {
idx = 110 + n;
iface = if n < 11 then "enp34s0np0" else "enp33s0np0";
iface = if n > 1 && n < 11 then "enp34s0np0" else "enp33s0np0";
name = "c0-${toString n}";
address = "172.16.239.${toString idx}";
ipoib = "10.1.6.${toString idx}";