Remove /home from compute and mount all NFS over IPoIB

This commit is contained in:
Jonas Juselius
2021-03-11 10:36:13 +01:00
parent 9fb7666421
commit a073bf2989
2 changed files with 34 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ let
nfs.enable = true; nfs.enable = true;
nfs.exports = '' nfs.exports = ''
/exports 10.1.61.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash) /exports 10.1.61.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
/exports 10.1.63.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
''; '';
}; };
@@ -106,6 +107,10 @@ let
device = "/opt"; device = "/opt";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/data" = {
device = "10.1.63.80:/data";
fsType = "nfs";
};
}; };
security.pam.services.sshd.googleAuthenticator.enable = true; security.pam.services.sshd.googleAuthenticator.enable = true;
@@ -145,12 +150,16 @@ let
}; };
fileSystems = { fileSystems = {
"/home" = { "/home/stokes" = {
device = "10.1.61.100:/home"; device = "10.1.63.100:/home";
fsType = "nfs"; fsType = "nfs";
}; };
"/opt" = { "/opt" = {
device = "10.1.61.100:/opt"; device = "10.1.63.100:/opt";
fsType = "nfs";
};
"/data" = {
device = "10.1.63.80:/data";
fsType = "nfs"; fsType = "nfs";
}; };
}; };

View File

@@ -13,6 +13,7 @@
eli = { gid = 1008; }; eli = { gid = 1008; };
ovanov = { gid = 1009; }; ovanov = { gid = 1009; };
bast = { gid = 1010; }; bast = { gid = 1010; };
marius = { gid = 1011; };
# @grp@ # @grp@
sif = { sif = {
@@ -25,6 +26,7 @@
"hes" "hes"
"hdj002" "hdj002"
"mad" "mad"
"marius"
"eli" "eli"
"ovanov" "ovanov"
"peyghamg" "peyghamg"
@@ -207,6 +209,8 @@
extraGroups = [ extraGroups = [
"users" "users"
"docker" "docker"
"wheel"
"root"
]; ];
uid = 1010; uid = 1010;
isNormalUser = true; isNormalUser = true;
@@ -218,6 +222,24 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIdcJteh9d/N1o8BbdEMRVxeMjm28saon/Oh2tV0+TYj" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIdcJteh9d/N1o8BbdEMRVxeMjm28saon/Oh2tV0+TYj"
]; ];
}; };
marius = {
description = "Marius Indreberg";
home = "/home/marius";
group = "marius";
extraGroups = [
"users"
"docker"
];
uid = 1011;
isNormalUser = true;
createHome = true;
useDefaultShell = false;
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8Q96rG6C8oX1fjW32yX0bPC3MOz2A6rUCPpoA5KqL0psJvA1ielUupBgo2uBlHG8UHOit5Ui23JVm4t/k7Czv0vbZ+Vx2qk52H1A+KKZByBWgEo+o+PpXZVNEfn6jQvVTOwSDSxTIO8UIMdFIfHjbYlpBN9JobK4b9OH3CUnnuqBxHtkef6dzy9XIDL8dX7HXK4/UcfoMy07gB/p/9Ij8i8CMlH7tX1IFJ7rICz2qsW5iSMpqOnClhyBYlm5VQ3OskLgTnTfBbNCTGkxuQlRpucqxW0J9Bas083N3TFWWhSHqnxTYlYmwAs+f07nIJpgOMYOPvHWIuiG1QvzIC2me/Hi0bbKd47HRwtLe0cMFItixv4ex9vvc8TOYwxruODnzAoeNT+Wn6MOEu44PXk5LezmGPhWLX0oaNNkiEFv4XQ4walZVJgiPmmLWgh0jit+D4omXlbUL8tHua5Ep+5InCOF4h8fisLXiJnzVkIo3teHJohXWs5ZkzowXHl4EmIDUlkEyVocFRodYmqkPDQWLb8pmWNbA5HIB9g/7Px1+8brTyhBcH80BRSmLfRR0nXPEwFupjuqfEQPgrRCT45QBA80OlmTMWcwO4fwZOeP+VPLalot7SHyjIivWb3LjLlasAU8w7QZbYa9MGoufVgOSsIi4Pgcwv+jK2cACWR24AQ== marius.indreberg@itpartner.no"
];
};
# @usr@ # @usr@
}; };