forked from Drift/pvv-nixos-config
Felix Albrigtsen
55e8f01d1d
This PR is made while moving Ildkule from PVE on joshua, to Openstack on stack.it.ntnu.no. - The main monitoring dashboard is moved from https://ildkule.pvv.ntnu.no to https://grafana.pvv.ntnu.no. - A new service is added: uptime-kuma on https://uptime.pvv.ntnu.no. - The (hardware) configuration for ildkule is updated to fit the new virtualization environment, boot loader, network interfaces, etc. - Metrics exporters on other hosts should be updated to allow connections from the new host As this is the first proper server running on openstack, and therefore outside our main IP range, we might discover challenges in our network structure. For example, the database servers usually only allow connections from this range, so Ildkule can no longer access it. This should be explored, documented and/or fixed as we move more services. Reviewed-on: Drift/pvv-nixos-config#36 Co-authored-by: Felix Albrigtsen <felix@albrigtsen.it> Co-committed-by: Felix Albrigtsen <felix@albrigtsen.it>
77 lines
1.6 KiB
Nix
77 lines
1.6 KiB
Nix
# Feel free to change the structure of this file
|
|
let
|
|
pvv-ipv4 = suffix: "129.241.210.${toString suffix}";
|
|
pvv-ipv6 = suffix: "2001:700:300:1900::${toString suffix}";
|
|
in rec {
|
|
ipv4-space = pvv-ipv4 "128/25";
|
|
ipv6-space = pvv-ipv6 "/64";
|
|
|
|
services = {
|
|
matrix = {
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
|
};
|
|
postgres = {
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
|
};
|
|
mysql = {
|
|
inherit (hosts.bicep) ipv4 ipv6;
|
|
};
|
|
# Also on bicep
|
|
turn = {
|
|
ipv4 = pvv-ipv4 213;
|
|
ipv6 = pvv-ipv6 213;
|
|
};
|
|
};
|
|
|
|
hosts = {
|
|
gateway = pvv-ipv4 129;
|
|
bekkalokk = {
|
|
ipv4 = pvv-ipv4 168;
|
|
ipv6 = pvv-ipv6 168;
|
|
};
|
|
ildkule = {
|
|
ipv4 = "10.212.25.209";
|
|
ipv6 = "2001:700:300:6025:f816:3eff:feee:812d";
|
|
|
|
ipv4_global = "129.241.153.213";
|
|
ipv6_global = "2001:700:300:6026:f816:3eff:fe58:f1e8";
|
|
};
|
|
bicep = {
|
|
ipv4 = pvv-ipv4 209;
|
|
ipv6 = pvv-ipv6 209;
|
|
};
|
|
bob = {
|
|
ipv4 = "129.241.152.254";
|
|
# ipv6 = ;
|
|
};
|
|
knutsen = {
|
|
ipv4 = pvv-ipv4 191;
|
|
};
|
|
shark = {
|
|
ipv4 = pvv-ipv4 196;
|
|
ipv6 = pvv-ipv6 196;
|
|
};
|
|
brzeczyszczykiewicz = {
|
|
ipv4 = pvv-ipv4 205;
|
|
ipv6 = pvv-ipv6 "1:50"; # Wtf peder why
|
|
};
|
|
georg = {
|
|
ipv4 = pvv-ipv4 204;
|
|
ipv6 = pvv-ipv6 "1:4f"; # Wtf øystein og daniel why
|
|
};
|
|
buskerud = {
|
|
ipv4 = pvv-ipv4 231;
|
|
ipv6 = pvv-ipv6 231;
|
|
};
|
|
};
|
|
|
|
defaultNetworkConfig = {
|
|
networkConfig.IPv6AcceptRA = "no";
|
|
gateway = [ hosts.gateway ];
|
|
dns = [ "129.241.0.200" "129.241.0.201" ];
|
|
domains = [ "pvv.ntnu.no" "pvv.org" ];
|
|
DHCP = "no";
|
|
};
|
|
|
|
}
|