2022-02-09 14:38:36 +00:00
|
|
|
{ config, pkgs, ... } @ args:
|
|
|
|
|
|
|
|
{
|
|
|
|
deuxfleurs.cluster_name = "prod";
|
2022-05-04 15:38:54 +00:00
|
|
|
|
2022-08-23 22:31:07 +00:00
|
|
|
# The IP range to use for the Wireguard overlay of this cluster
|
|
|
|
deuxfleurs.cluster_prefix = "10.83.0.0";
|
|
|
|
deuxfleurs.cluster_prefix_length = 16;
|
2022-05-04 15:38:54 +00:00
|
|
|
|
2022-08-23 22:31:07 +00:00
|
|
|
deuxfleurs.cluster_nodes = [
|
|
|
|
{
|
|
|
|
hostname = "concombre";
|
|
|
|
site_name = "neptune";
|
|
|
|
publicKey = "VvXT0fPDfWsHxumZqVShpS33dJQAdpJ1E79ZbCBJP34=";
|
|
|
|
IP = "10.83.1.1";
|
|
|
|
lan_endpoint = "192.168.1.31:33799";
|
|
|
|
endpoint = "77.207.15.215:33731";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "courgette";
|
|
|
|
site_name = "neptune";
|
|
|
|
publicKey = "goTkBJGmzrGDOAjUcdH9G0JekipqSMoaYQdB6IHnzi0=";
|
|
|
|
IP = "10.83.1.2";
|
|
|
|
lan_endpoint = "192.168.1.32:33799";
|
|
|
|
endpoint = "77.207.15.215:33732";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "celeri";
|
|
|
|
site_name = "neptune";
|
|
|
|
publicKey = "oZDAb8LoLW87ktUHyFFec0VaIar97bqq47mGbdVqJ0U=";
|
|
|
|
IP = "10.83.1.3";
|
|
|
|
lan_endpoint = "192.168.1.33:33799";
|
|
|
|
endpoint = "77.207.15.215:33733";
|
|
|
|
}
|
2022-08-24 10:06:01 +00:00
|
|
|
{
|
|
|
|
hostname = "dahlia";
|
|
|
|
site_name = "orion";
|
|
|
|
publicKey = "EtRoWBYCdjqgXX0L+uWLg8KxNfIK8k9OTh30tL19bXU=";
|
|
|
|
IP = "10.83.2.1";
|
|
|
|
lan_endpoint = "192.168.1.11:33799";
|
2022-10-16 10:08:27 +00:00
|
|
|
endpoint = "82.66.80.201:33731";
|
2022-08-24 10:06:01 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "diplotaxis";
|
|
|
|
site_name = "orion";
|
|
|
|
publicKey = "HbLC938mysadMSOxWgq8+qrv+dBKzPP/43OMJp/3phA=";
|
|
|
|
IP = "10.83.2.2";
|
|
|
|
lan_endpoint = "192.168.1.12:33799";
|
2022-10-16 10:08:27 +00:00
|
|
|
endpoint = "82.66.80.201:33732";
|
2022-08-24 10:06:01 +00:00
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "doradille";
|
|
|
|
site_name = "orion";
|
|
|
|
publicKey = "e1C8jgTj9eD20ywG08G1FQZ+Js3wMK/msDUE1wO3l1Y=";
|
|
|
|
IP = "10.83.2.3";
|
|
|
|
lan_endpoint = "192.168.1.13:33799";
|
2022-10-16 10:08:27 +00:00
|
|
|
endpoint = "82.66.80.201:33733";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "df-ylk";
|
|
|
|
site_name = "bespin";
|
|
|
|
publicKey = "bIjxey/VhBgVrLa0FxN/KISOt2XFmQeSh1MPivUq9gg";
|
|
|
|
IP = "10.83.3.1";
|
|
|
|
lan_endpoint = "192.168.5.117:33799";
|
|
|
|
endpoint = "bespin.site.deuxfleurs.fr:33731";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "df-ymf";
|
|
|
|
site_name = "bespin";
|
|
|
|
publicKey = "pUIKv8UBl586O7DBrHBsb9BgNU7WlYQ2r2RSNkD+JAQ=";
|
|
|
|
IP = "10.83.3.2";
|
|
|
|
lan_endpoint = "192.168.5.234:33799";
|
|
|
|
endpoint = "bespin.site.deuxfleurs.fr:33732";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
hostname = "df-ymk";
|
|
|
|
site_name = "bespin";
|
|
|
|
publicKey = "VBmpo15iIJP7250NAsF+ryhZc3j+8TZFnE1Djvn5TXI=";
|
|
|
|
IP = "10.83.3.3";
|
|
|
|
lan_endpoint = "192.168.5.116:33799";
|
|
|
|
endpoint = "bespin.site.deuxfleurs.fr:33733";
|
2022-08-24 10:06:01 +00:00
|
|
|
}
|
2022-08-23 22:31:07 +00:00
|
|
|
];
|
2022-05-04 15:38:54 +00:00
|
|
|
|
|
|
|
# Bootstrap IPs for Consul cluster,
|
2022-10-09 15:46:59 +00:00
|
|
|
# these are IPs on the Wireguard overlay
|
2022-05-04 15:38:54 +00:00
|
|
|
services.consul.extraConfig.retry_join = [
|
2022-08-23 22:31:07 +00:00
|
|
|
"10.83.1.1" # concombre
|
|
|
|
"10.83.1.3" # celeri
|
2022-10-09 15:46:59 +00:00
|
|
|
"19.83.2.1" # dahlia
|
2022-02-09 14:38:36 +00:00
|
|
|
];
|
2022-05-04 15:38:54 +00:00
|
|
|
|
2022-02-09 14:38:36 +00:00
|
|
|
deuxfleurs.admin_accounts = {
|
|
|
|
lx = [
|
|
|
|
# Keys for accessing nodes from outside
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJpaBZdYxHqMxhv2RExAOa7nkKhPBOHupMP3mYaZ73w9 lx@lindy"
|
2022-10-09 15:46:59 +00:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIw+IIX8+lZX9RrHAbwi/bncLYStXpI4EmK3AUcqPY2O lx@kusanagi "
|
2022-02-09 14:38:36 +00:00
|
|
|
];
|
2022-05-04 15:38:54 +00:00
|
|
|
quentin = [
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDT1+H08FdUSvdPpPKdcafq4+JRHvFVjfvG5Id97LAoROmFRUb/ZOMTLdNuD7FqvW0Da5CPxIMr8ZxfrFLtpGyuG7qdI030iIRZPlKpBh37epZHaV+l9F4ZwJQMIBO9cuyLPXgsyvM/s7tDtrdK1k7JTf2EVvoirrjSzBaMhAnhi7//to8zvujDtgDZzy6aby75bAaDetlYPBq2brWehtrf9yD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Q1zcac9uYjMADoSsSMjrCQ8FVUT6enPe+g36MtWEaBxUpfqFx0xvw2bvbWFm5xk0uMM= adrien@pratchett"
|
2022-05-04 15:38:54 +00:00
|
|
|
];
|
|
|
|
maximilien = [
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHMMR6zNzz8NQU80wFquhUCeiXJuGphjP+zNouKbn228GyESu8sfNBwnuZq86vblR11Lz8l2rtCM73GfAKg29qmUWUHRKWvRIYWv2vaUJcCdy0bAxIzcvCvjZX0SpnIKxe9y3Rp0LGO5WLYfw0ZFaavwFZP0Z8w1Kj9/zBmL2X2avbhkaYHi/C1yXhbvESYQysmqLa48EX/TS616MBrgR9zbI9AoTQ9NOHnR14Tve/AP/khcZoBJdm4hTttMbNkEc0wonzdylTDew263SPRs/uoqnQIpUtErdPHqU10Yup8HjXjEyFJsSwcZcM5sZOw5JKckKJwmcd0yjO/x/4/Mk5"
|
|
|
|
];
|
2022-02-09 14:38:36 +00:00
|
|
|
};
|
2022-02-09 21:57:52 +00:00
|
|
|
|
|
|
|
# For Garage external communication
|
|
|
|
networking.firewall.allowedTCPPorts = [ 3901 ];
|
2022-02-09 14:38:36 +00:00
|
|
|
}
|