2023-06-15 01:47:56 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
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/gitlab.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
targetHost = hostname;
|
|
|
|
targetPort = 22;
|
|
|
|
targetUser = "root";
|
2023-06-15 13:30:18 +00:00
|
|
|
|
2023-07-08 09:28:58 +00:00
|
|
|
tags = [ "active-gitlab" ];
|
2023-06-15 01:47:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2023-07-16 00:53:21 +00:00
|
|
|
skynet_dns.records = [
|
|
|
|
{record=name; r_type="A"; value=ip_pub; server=true;}
|
|
|
|
{record=ip_pub; r_type="PTR"; value=hostname;}
|
|
|
|
];
|
2023-06-15 01:47:56 +00:00
|
|
|
|
2023-07-15 14:05:57 +00:00
|
|
|
services.skynet_backup = {
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
|
|
|
};
|
|
|
|
};
|
2023-06-15 01:47:56 +00:00
|
|
|
|
2023-07-15 14:05:57 +00:00
|
|
|
services.skynet_gitlab = {
|
|
|
|
enable = true;
|
|
|
|
host = {
|
|
|
|
ip = ip_pub;
|
|
|
|
name = name;
|
2023-06-15 01:47:56 +00:00
|
|
|
};
|
2023-07-15 14:05:57 +00:00
|
|
|
};
|
2023-06-15 01:47:56 +00:00
|
|
|
|
|
|
|
}
|