nixcfg/os/host_TOREWORK/cluster/prod/cluster.nix

71 lines
2.3 KiB
Nix
Raw Permalink Normal View History

2022-02-09 14:38:36 +00:00
{ config, pkgs, ... } @ args:
{
deuxfleurs.cluster_name = "prod";
deuxfleurs.cluster_nodes = [
{
hostname = "concombre";
2022-02-25 23:17:12 +00:00
site_name = "neptune";
2022-02-09 14:38:36 +00:00
publicKey = "VvXT0fPDfWsHxumZqVShpS33dJQAdpJ1E79ZbCBJP34=";
IP = "10.42.1.31";
endpoint = "82.66.112.151:33731";
2022-02-25 23:17:12 +00:00
lan_endpoint = "192.168.1.31:33731";
2022-02-09 14:38:36 +00:00
}
{
hostname = "courgette";
2022-02-25 23:17:12 +00:00
site_name = "neptune";
2022-02-09 14:38:36 +00:00
publicKey = "goTkBJGmzrGDOAjUcdH9G0JekipqSMoaYQdB6IHnzi0=";
IP = "10.42.1.32";
endpoint = "82.66.112.151:33732";
2022-02-25 23:17:12 +00:00
lan_endpoint = "192.168.1.32:33732";
2022-02-09 14:38:36 +00:00
}
{
hostname = "celeri";
2022-02-25 23:17:12 +00:00
site_name = "neptune";
2022-02-09 14:38:36 +00:00
publicKey = "oZDAb8LoLW87ktUHyFFec0VaIar97bqq47mGbdVqJ0U=";
IP = "10.42.1.33";
endpoint = "82.66.112.151:33733";
2022-02-25 23:17:12 +00:00
lan_endpoint = "192.168.1.33:33733";
2022-02-09 14:38:36 +00:00
}
];
deuxfleurs.admin_nodes = [
{
hostname = "hammerhead";
publicKey = "b5hF+GSTgg3oM6wnjL7jRbfyf1jtsWdVptPPbAh3Qic=";
IP = "10.42.0.1";
endpoint = "5.135.179.11:51349";
}
{
hostname = "robinson";
publicKey = "ETaZFil3mFXlJ0LaJZyWqJVLV2IZUF5PB/8M7WbQSTg=";
IP = "10.42.0.42";
endpoint = "77.141.67.109:33742";
}
{
hostname = "shiki";
publicKey = "QUiUNMk70TEQ75Ut7Uqikr5uGVSXmx8EGNkGM6tANlg=";
IP = "10.42.0.206";
endpoint = "37.187.118.206:51820";
}
{
hostname = "lindy";
publicKey = "wen9GnZy2iLT6RyHfn7ydS/wvdvow1XPmhZxIkrDbks=";
IP = "10.42.0.66";
endpoint = "82.66.112.151:33766";
}
];
deuxfleurs.admin_accounts = {
lx = [
# Keys for accessing nodes from outside
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJpaBZdYxHqMxhv2RExAOa7nkKhPBOHupMP3mYaZ73w9 lx@lindy"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIDdVbA9fEdqSr5UJ77NnoIqDTVp8ca5kHExhZYI4ecBExFJfonJllXMBN9KdC4ukxtY8Ug47PcMOfMaTBZQc+e+KpvDWpkBt15Xpem3RCxmMBES79sLL7LgtAdBXc5mNaCX8EOEVixWKdarjvxRyf6py6the51G5muaiMpoj5fae4ZpRGjhGTPefzc7y7zRWBUUZ8pYHW774BIaK6XT9gn3hyHV+Occjl/UODXvodktk55YtnuPi8adXTYEsHrVVz8AkFhx+cr0U/U8vtQnsTrZG+JmgQLqpXVs0RDw5bE1RefEbMuYNKxutYKUe3L+ZJtDe0M0MqOFI8a4F5TxP5 katchup@konata"
];
};
# For Garage external communication
networking.firewall.allowedTCPPorts = [ 3901 ];
# Enable netdata monitoring
services.netdata.enable = true;
2022-02-09 14:38:36 +00:00
}