forked from mirrors/nixpkgs
tests: fix more loaOf deprecation warnings
This commit is contained in:
parent
3b7f5c6762
commit
d7bc3a7534
|
@ -4,10 +4,11 @@ let
|
||||||
client = { pkgs, ... } : {
|
client = { pkgs, ... } : {
|
||||||
environment.systemPackages = [ pkgs.glusterfs ];
|
environment.systemPackages = [ pkgs.glusterfs ];
|
||||||
fileSystems = pkgs.lib.mkVMOverride
|
fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/gluster";
|
{ "/gluster" =
|
||||||
fsType = "glusterfs";
|
{ device = "server1:/gv0";
|
||||||
device = "server1:/gv0";
|
fsType = "glusterfs";
|
||||||
} ];
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
server = { pkgs, ... } : {
|
server = { pkgs, ... } : {
|
||||||
|
@ -22,11 +23,11 @@ let
|
||||||
virtualisation.emptyDiskImages = [ 1024 ];
|
virtualisation.emptyDiskImages = [ 1024 ];
|
||||||
|
|
||||||
fileSystems = pkgs.lib.mkVMOverride
|
fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/data";
|
{ "/data" =
|
||||||
device = "/dev/disk/by-label/data";
|
{ device = "/dev/disk/by-label/data";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
name = "glusterfs";
|
name = "glusterfs";
|
||||||
|
|
|
@ -5,13 +5,13 @@ let
|
||||||
client =
|
client =
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{ fileSystems = pkgs.lib.mkVMOverride
|
{ fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/data";
|
{ "/data" =
|
||||||
# nfs4 exports the export with fsid=0 as a virtual root directory
|
{ # nfs4 exports the export with fsid=0 as a virtual root directory
|
||||||
device = if (version == 4) then "server:/" else "server:/data";
|
device = if (version == 4) then "server:/" else "server:/data";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "vers=${toString version}" ];
|
options = [ "vers=${toString version}" ];
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
networking.firewall.enable = false; # FIXME: only open statd
|
networking.firewall.enable = false; # FIXME: only open statd
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,11 @@ let
|
||||||
virtualisation.emptyDiskImages = [ 4096 ];
|
virtualisation.emptyDiskImages = [ 4096 ];
|
||||||
|
|
||||||
fileSystems = pkgs.lib.mkVMOverride
|
fileSystems = pkgs.lib.mkVMOverride
|
||||||
[ { mountPoint = "/data";
|
{ "/data" =
|
||||||
device = "/dev/disk/by-label/data";
|
{ device = "/dev/disk/by-label/data";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
|
|
||||||
services.orangefs.server = {
|
services.orangefs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue