Update fs2 to new config and new VLAN

This commit is contained in:
Jonas Juselius
2020-11-25 10:18:07 +01:00
parent c370313e70
commit 260188e6df

View File

@@ -1,14 +1,25 @@
with import <nixpkgs> {};
let
setup = import ../../modules/default.nix { inherit pkgs cluster lib config; };
setup = import ../../modules { inherit pkgs cluster customize lib config; };
hosts = [
{ name = "fs2-0"; address = "10.1.2.117"; hw = ./fs2-0.nix; }
{ name = "fs2-0"; address = "10.1.8.10"; }
];
customize = {
boot.uefi = true;
};
cluster = {
initca = ./ca;
clusterName = "fs2";
initca = ./ca;
domain = "itpartner.intern";
externalInterface = "eth0";
defaultGateway = "10.1.8.1";
nameservers = [ "8.8.8.8" ];
searchDomains = [ "itpartner.no" ];
extraHosts = import ../hosts.nix;
adminAuthorizedKeys = [
@@ -20,9 +31,9 @@ let
enable = true;
nfs.enable = true;
nfs.exports = ''
/vol/export 10.253.18.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
/vol/export 10.1.8.0/24(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0,no_root_squash)
'';
};
};
in
setup.fs.mkDeployment hosts
setup.fs.mkDeployment ./. hosts