Update fs2 to new config and new VLAN
This commit is contained in:
@@ -1,14 +1,25 @@
|
|||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
let
|
let
|
||||||
setup = import ../../modules/default.nix { inherit pkgs cluster lib config; };
|
setup = import ../../modules { inherit pkgs cluster customize lib config; };
|
||||||
|
|
||||||
hosts = [
|
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 = {
|
cluster = {
|
||||||
initca = ./ca;
|
|
||||||
clusterName = "fs2";
|
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;
|
extraHosts = import ../hosts.nix;
|
||||||
|
|
||||||
adminAuthorizedKeys = [
|
adminAuthorizedKeys = [
|
||||||
@@ -20,9 +31,9 @@ let
|
|||||||
enable = true;
|
enable = true;
|
||||||
nfs.enable = true;
|
nfs.enable = true;
|
||||||
nfs.exports = ''
|
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
|
in
|
||||||
setup.fs.mkDeployment hosts
|
setup.fs.mkDeployment ./. hosts
|
||||||
|
|||||||
Reference in New Issue
Block a user