Skip to content

Commit

Permalink
Add usatour machine
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpylons committed Sep 19, 2024
1 parent fd14c36 commit edb3894
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- "bioma.l"
- "ps.l"
- "feriusa.l"
- "usatour.l"
fail-fast: false
needs: bastion

Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
"feriusa.l" = mkSystem "feriusa.l" [
feriusa.nixosModules.wordpress
];
"usatour.l" = mkSystem "usatour.l" [
feriusa.nixosModules.wordpress
];
"sso-test.l" = mkSystem "sso-test.l" [
{nixpkgs.overlays = [sso-test-overlay];}
sso-test.nixosModules.service
Expand Down
26 changes: 25 additions & 1 deletion infra/infra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@
backing = "minimal-base-v3";
capacity = unit.GiB 8;
}
{
name = "usatour";
backing = "minimal-base-v3";
capacity = unit.GiB 8;
}
];
};
};
Expand Down Expand Up @@ -190,7 +195,6 @@
{mac = "02:a2:cd:0c:46:78"; hostname = "spum-platform"; address = "10.17.3.110";}
{mac = "02:b2:a8:b4:1a:fd"; hostname = "ps-old"; address = "10.17.3.130";}
{mac = "02:2a:89:07:ca:ef"; hostname = "gtpmas.l"; address = "10.17.3.173";}
{mac = "02:94:78:76:bd:6b"; hostname = "prometheus-old.l"; address = "10.17.3.107";}
];
};
};
Expand Down Expand Up @@ -451,6 +455,26 @@
}
];
};
"usatour" = {
start = true;
autoStart = true;
memory = unit.GiB 1;
vcpu = 1;
disks = [
{
device = "vda";
pool = "alternative";
volume = "usatour";
}
];
networkInterfaces = [
{
network = "private-network";
hostname = "usatour.l";
address = "10.17.3.152";
}
];
};
"student-mqtt" = {
start = true;
autoStart = true;
Expand Down
12 changes: 12 additions & 0 deletions machines/gateway.l/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
"feriusa.um.si" = {
inherit email;
};
"students.lpm.feri.um.si" = {
inherit email;
};
};
security.acme.acceptTerms = true;

Expand Down Expand Up @@ -254,6 +257,15 @@
proxyPass = "http://feriusa.l/";
};
};
"students.lpm.feri.um.si" = {
addSSL = true;
enableACME = true;

locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://usatour.l/";
};
};
"dev.login.lpm.feri.um.si" = {
addSSL = true;
enableACME = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
{
imports = [
../../modules/image.nix
../../modules/base.nix
../../users/root.nix
../../users/usatour.nix
../../users/rescue.nix
];

networking.firewall.allowedTCPPorts = [22 80 9100];
networking.firewall.allowedTCPPorts = [22 80];
}
2 changes: 1 addition & 1 deletion users/feriusa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
users.users.feriusa = {
isNormalUser = true;
description = "Feri USA user";
description = "FERI USA user";
openssh.authorizedKeys.keys = with import ../ssh/users.nix; [mario ziga matej marko cvetanka];
};
}
8 changes: 8 additions & 0 deletions users/usatour.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{config, lib, ...}:
{
users.users.usatour = {
isNormalUser = true;
description = "Legacy FERI USA user";
openssh.authorizedKeys.keys = with import ../ssh/users.nix; [mario ziga matej marko cvetanka];
};
}

0 comments on commit edb3894

Please sign in to comment.