feat: enabled gitlab.skynet.ie
This commit is contained in:
parent
564fe272b1
commit
0411c8e18c
16 changed files with 104 additions and 58 deletions
58
machines/glados.nix
Normal file
58
machines/glados.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
|
||||
Name: https://half-life.fandom.com/wiki/GLaDOS
|
||||
Why: Glados has a vast experence of testing and deploying.
|
||||
Type: VM
|
||||
Hardware: -
|
||||
From: 2023
|
||||
Role: Git server
|
||||
Notes: Each user has roughly 20gb os storage
|
||||
20 * 100 = 2000gb
|
||||
|
||||
*/
|
||||
|
||||
{ pkgs, lib, nodes, ... }:
|
||||
let
|
||||
# name of the server, sets teh hostname and record for it
|
||||
name = "glados";
|
||||
ip_pub = "193.1.99.75";
|
||||
ip_priv = "172.20.20.7";
|
||||
hostname = "${name}.skynet.ie";
|
||||
|
||||
in {
|
||||
imports = [
|
||||
../applications/dns.nix
|
||||
|
||||
# applications for this particular server
|
||||
../applications/gitlab.nix
|
||||
];
|
||||
|
||||
deployment = {
|
||||
targetHost = hostname;
|
||||
targetPort = 22;
|
||||
targetUser = "root";
|
||||
};
|
||||
|
||||
|
||||
skynet_dns.records = {
|
||||
external = [
|
||||
"${name} A ${ip_pub}"
|
||||
];
|
||||
reverse = [
|
||||
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||
];
|
||||
};
|
||||
|
||||
services.skynet_gitlab = {
|
||||
enable = true;
|
||||
|
||||
host = {
|
||||
# pass in teh ip (used for firewall)
|
||||
ip = ip_pub;
|
||||
|
||||
# the name is used for dns
|
||||
name = name;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -23,9 +23,6 @@ in {
|
|||
# applications for this particular server
|
||||
../applications/dns.nix
|
||||
../applications/games.nix
|
||||
|
||||
# for testing
|
||||
../applications/gitlab.nix
|
||||
];
|
||||
|
||||
deployment = {
|
||||
|
@ -34,7 +31,6 @@ in {
|
|||
targetUser = "root";
|
||||
};
|
||||
|
||||
|
||||
skynet_dns.records = {
|
||||
external = [
|
||||
"${name} A ${ip_pub}"
|
||||
|
@ -55,17 +51,4 @@ in {
|
|||
name = name;
|
||||
};
|
||||
};
|
||||
|
||||
services.skynet_gitlab = {
|
||||
enable = true;
|
||||
|
||||
host = {
|
||||
# pass in teh ip (used for firewall)
|
||||
ip = ip_pub;
|
||||
|
||||
# the name is used for dns
|
||||
name = name;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue