Skip to content

Commit d40f4d1

Browse files
committed
imp: add zt gateway
1 parent 0ba3019 commit d40f4d1

File tree

4 files changed

+281
-13
lines changed

4 files changed

+281
-13
lines changed

flake.lock

Lines changed: 142 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
n2c.url = "github:nlewo/nix2container";
66
data-merge.url = "github:divnix/data-merge";
77
# --- Bitte Stack ----------------------------------------------
8-
bitte.url = "github:input-output-hk/bitte";
9-
# bitte.url = "path:/home/jlotoski/work/iohk/bitte-wt/fix-core-user-data";
8+
bitte.url = "github:input-output-hk/bitte/zt";
9+
# bitte.url = "path:/home/jlotoski/work/iohk/bitte-wt/zt";
1010
# bitte.url = "path:/home/manveru/github/input-output-hk/bitte";
1111
bitte-cells.url = "github:input-output-hk/bitte-cells";
1212
# bitte-cells.url = "path:/home/jlotoski/work/iohk/bitte-cells-wt/bitte-cells";
@@ -30,6 +30,8 @@
3030
cicero.inputs.spongix.follows = "spongix";
3131
cicero.inputs.driver.follows = "nomad-driver-nix";
3232
tullia.url = "github:input-output-hk/tullia";
33+
openziti.url = "github:johnalotoski/openziti-bins";
34+
openziti.inputs.nixpkgs.follows = "nixpkgs";
3335
# --------------------------------------------------------------
3436
};
3537

nix/metal/bitteProfile/default.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ in {
2525
flakePath = "${inputs.self}";
2626
vbkBackend = "local";
2727
builder = "cache";
28+
transitGateway = {
29+
enable = true;
30+
transitRoutes = [
31+
{
32+
gatewayCoreNodeName = "zt";
33+
cidrRange = "10.10.0.0/24";
34+
}
35+
];
36+
};
2837

2938
autoscalingGroups = let
3039
defaultModules = [
@@ -231,6 +240,37 @@ in {
231240
inherit (securityGroupRules) internet internal ssh;
232241
};
233242
};
243+
244+
zt = {
245+
# https://support.netfoundry.io/hc/en-us/articles/360025875331-Edge-Router-VM-Sizing-Guide
246+
instanceType = "c5.large";
247+
privateIP = "172.16.0.30";
248+
subnet = cluster.vpc.subnets.core-1;
249+
volumeSize = 100;
250+
sourceDestCheck = false;
251+
252+
modules = [
253+
(bitte + /profiles/common.nix)
254+
(bitte + /modules/ziti/ziti-controller.nix)
255+
(bitte + /modules/ziti/ziti-router.nix)
256+
(bitte + /modules/ziti/ziti-console.nix)
257+
(bitte + /modules/ziti/ziti-edge-tunnel.nix)
258+
./ziti.nix
259+
];
260+
261+
securityGroupRules = {
262+
inherit
263+
(securityGroupRules)
264+
internal
265+
internet
266+
ssh
267+
ziti-controller-mgmt
268+
ziti-controller-rest
269+
ziti-router-edge
270+
ziti-router-fabric
271+
;
272+
};
273+
};
234274
};
235275
};
236276
};

0 commit comments

Comments
 (0)