From 3fa5eef05d81b828b666b3aa7d31e49786233be2 Mon Sep 17 00:00:00 2001 From: mricher Date: Sun, 16 Oct 2022 11:09:30 +0200 Subject: Add bespin machines --- cluster/prod/node/df-ykl.nix | 18 ++++++++++++++++++ cluster/prod/node/df-ykl.site.nix | 1 + cluster/prod/node/df-ymf.nix | 18 ++++++++++++++++++ cluster/prod/node/df-ymf.site.nix | 1 + cluster/prod/node/df-ymk.nix | 18 ++++++++++++++++++ cluster/prod/node/df-ymk.site.nix | 1 + cluster/prod/site/bespin.nix | 12 ++++++++++++ 7 files changed, 69 insertions(+) create mode 100644 cluster/prod/node/df-ykl.nix create mode 120000 cluster/prod/node/df-ykl.site.nix create mode 100644 cluster/prod/node/df-ymf.nix create mode 120000 cluster/prod/node/df-ymf.site.nix create mode 100644 cluster/prod/node/df-ymk.nix create mode 120000 cluster/prod/node/df-ymk.site.nix create mode 100644 cluster/prod/site/bespin.nix 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 ]; +} -- cgit v1.2.3