Fix cluster setups to unmask lib
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
lib = import ../../lib/default.nix { inherit pkgs cfg lib config; };
|
||||
setup = import ../../lib/default.nix { inherit pkgs cfg lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "fs0-0"; address = "10.253.18.106"; hw = ./fs0-0.nix; }
|
||||
@@ -41,4 +41,4 @@ let
|
||||
'';
|
||||
};
|
||||
in
|
||||
lib.fs.mkDeployment hosts
|
||||
setup.fs.mkDeployment hosts
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
lib = import ../../lib/default.nix { inherit pkgs cfg lib config; };
|
||||
setup = import ../../lib/default.nix { inherit pkgs cluster lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "fs2-0"; address = "10.1.2.117"; hw = ./fs2-0.nix; }
|
||||
];
|
||||
|
||||
cfg = {
|
||||
cluster = {
|
||||
initca = ./ca;
|
||||
clusterName = "fs2";
|
||||
extraHosts = ''
|
||||
@@ -41,4 +41,4 @@ let
|
||||
'';
|
||||
};
|
||||
in
|
||||
lib.fs.mkDeployment hosts
|
||||
setup.fs.mkDeployment hosts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
lib = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
setup = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "k0-1"; address = "10.253.18.101"; hw = ./k0-1.nix; }
|
||||
@@ -72,4 +72,4 @@ let
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.k8s.mkDeployment cfg.k8s.master hosts
|
||||
setup.k8s.mkDeployment cfg.k8s.master hosts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
lib = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
setup = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "k1-1"; address = "10.253.18.110"; hw = ./k1-1.nix; }
|
||||
@@ -74,4 +74,4 @@ let
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.k8s.mkDeployment cfg.k8s.master hosts
|
||||
setup.k8s.mkDeployment cfg.k8s.master hosts
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
with import <nixpkgs> {};
|
||||
let
|
||||
lib = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
setup = import ../../lib/default.nix { inherit pkgs cfg customize lib config; };
|
||||
|
||||
hosts = [
|
||||
{ name = "k2-1"; address = "10.253.18.115"; hw = ./k2-1.nix; }
|
||||
@@ -75,4 +75,4 @@ let
|
||||
};
|
||||
};
|
||||
in
|
||||
lib.k8s.mkDeployment cfg.k8s.master hosts
|
||||
setup.k8s.mkDeployment cfg.k8s.master hosts
|
||||
|
||||
Reference in New Issue
Block a user