diff options
author | mricher <maximilien.richer@gmail.com> | 2022-10-16 11:09:30 +0200 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2022-10-16 14:17:12 +0000 |
commit | 6bafa20bf671f1625c3306a355c8d6b3ccae39d4 (patch) | |
tree | 7c38a96b9ee549e57f0e569902768aa505bdc242 | |
parent | 38a544d9c45a7c6ce682d8677e52f022d9547177 (diff) | |
download | nixcfg-6bafa20bf671f1625c3306a355c8d6b3ccae39d4.tar.gz nixcfg-6bafa20bf671f1625c3306a355c8d6b3ccae39d4.zip |
Add bespin machines
-rw-r--r-- | cluster/prod/node/df-ykl.nix | 18 | ||||
l--------- | cluster/prod/node/df-ykl.site.nix | 1 | ||||
-rw-r--r-- | cluster/prod/node/df-ymf.nix | 18 | ||||
l--------- | cluster/prod/node/df-ymf.site.nix | 1 | ||||
-rw-r--r-- | cluster/prod/node/df-ymk.nix | 18 | ||||
l--------- | cluster/prod/node/df-ymk.site.nix | 1 | ||||
-rw-r--r-- | cluster/prod/site/bespin.nix | 12 |
7 files changed, 69 insertions, 0 deletions
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 ]; +} |