aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod')
-rw-r--r--cluster/prod/cluster.nix31
-rw-r--r--cluster/prod/node/df-ykl.nix18
l---------cluster/prod/node/df-ykl.site.nix1
-rw-r--r--cluster/prod/node/df-ymf.nix18
l---------cluster/prod/node/df-ymf.site.nix1
-rw-r--r--cluster/prod/node/df-ymk.nix18
l---------cluster/prod/node/df-ymk.site.nix1
-rw-r--r--cluster/prod/site/bespin.nix12
8 files changed, 96 insertions, 4 deletions
diff --git a/cluster/prod/cluster.nix b/cluster/prod/cluster.nix
index 1821d03..e948eb4 100644
--- a/cluster/prod/cluster.nix
+++ b/cluster/prod/cluster.nix
@@ -38,7 +38,7 @@
publicKey = "EtRoWBYCdjqgXX0L+uWLg8KxNfIK8k9OTh30tL19bXU=";
IP = "10.83.2.1";
lan_endpoint = "192.168.1.11:33799";
- endpoint = "82.66.80.201:33731";
+ endpoint = "82.66.80.201:33731";
}
{
hostname = "diplotaxis";
@@ -46,8 +46,7 @@
publicKey = "HbLC938mysadMSOxWgq8+qrv+dBKzPP/43OMJp/3phA=";
IP = "10.83.2.2";
lan_endpoint = "192.168.1.12:33799";
- endpoint = "82.66.80.201:33732";
-
+ endpoint = "82.66.80.201:33732";
}
{
hostname = "doradille";
@@ -55,7 +54,31 @@
publicKey = "e1C8jgTj9eD20ywG08G1FQZ+Js3wMK/msDUE1wO3l1Y=";
IP = "10.83.2.3";
lan_endpoint = "192.168.1.13:33799";
- endpoint = "82.66.80.201:33733";
+ 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";
}
];
diff --git a/cluster/prod/node/df-ykl.nix b/cluster/prod/node/df-ykl.nix
new file mode 100644
index 0000000..e2eb796
--- /dev/null
+++ b/cluster/prod/node/df-ykl.nix
@@ -0,0 +1,18 @@
+# Configuration file local to this node
+
+{ config, pkgs, ... }:
+
+{
+ # Use the systemd-boot EFI boot loader.
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ networking.hostName = "df-ykl";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.5.117";
+ deuxfleurs.ipv6 = "2a02:a03f:6510:5102:6e4b:90ff:fe3b:e86c";
+
+ deuxfleurs.cluster_ip = "10.83.3.1";
+ deuxfleurs.is_raft_server = true;
+}
diff --git a/cluster/prod/node/df-ykl.site.nix b/cluster/prod/node/df-ykl.site.nix
new file mode 120000
index 0000000..24a1723
--- /dev/null
+++ b/cluster/prod/node/df-ykl.site.nix
@@ -0,0 +1 @@
+../site/bespin.nix \ No newline at end of file
diff --git a/cluster/prod/node/df-ymf.nix b/cluster/prod/node/df-ymf.nix
new file mode 100644
index 0000000..2ae49ad
--- /dev/null
+++ b/cluster/prod/node/df-ymf.nix
@@ -0,0 +1,18 @@
+# Configuration file local to this node
+
+{ config, pkgs, ... }:
+
+{
+ # Use the systemd-boot EFI boot loader.
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ networking.hostName = "df-ymf";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.5.134";
+ deuxfleurs.ipv6 = "2a02:a03f:6510:5102:6e4b:90ff:fe3a:6174";
+
+ deuxfleurs.cluster_ip = "10.83.3.2";
+ deuxfleurs.is_raft_server = false;
+}
diff --git a/cluster/prod/node/df-ymf.site.nix b/cluster/prod/node/df-ymf.site.nix
new file mode 120000
index 0000000..24a1723
--- /dev/null
+++ b/cluster/prod/node/df-ymf.site.nix
@@ -0,0 +1 @@
+../site/bespin.nix \ No newline at end of file
diff --git a/cluster/prod/node/df-ymk.nix b/cluster/prod/node/df-ymk.nix
new file mode 100644
index 0000000..c30346f
--- /dev/null
+++ b/cluster/prod/node/df-ymk.nix
@@ -0,0 +1,18 @@
+# Configuration file local to this node
+
+{ config, pkgs, ... }:
+
+{
+ # Use the systemd-boot EFI boot loader.
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ networking.hostName = "df-ymk";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.5.116";
+ deuxfleurs.ipv6 = "2a02:a03f:6510:5102:6e4b:90ff:fe3b:e939";
+
+ deuxfleurs.cluster_ip = "10.83.3.3";
+ deuxfleurs.is_raft_server = false;
+}
diff --git a/cluster/prod/node/df-ymk.site.nix b/cluster/prod/node/df-ymk.site.nix
new file mode 120000
index 0000000..24a1723
--- /dev/null
+++ b/cluster/prod/node/df-ymk.site.nix
@@ -0,0 +1 @@
+../site/bespin.nix \ No newline at end of file
diff --git a/cluster/prod/site/bespin.nix b/cluster/prod/site/bespin.nix
new file mode 100644
index 0000000..4b60d4d
--- /dev/null
+++ b/cluster/prod/site/bespin.nix
@@ -0,0 +1,12 @@
+{ config, pkgs, ... }:
+
+{
+ deuxfleurs.site_name = "bespin";
+ deuxfleurs.lan_default_gateway = "192.168.5.254";
+ deuxfleurs.ipv6_default_gateway = "2a02:a03f:6510:5102::1";
+ deuxfleurs.lan_ip_prefix_length = 24;
+ deuxfleurs.ipv6_prefix_length = 64;
+ deuxfleurs.nameservers = [ "192.168.5.254" ];
+
+ networking.firewall.allowedTCPPorts = [ 80 443 ];
+}