aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod')
-rw-r--r--cluster/prod/node/dahlia.nix18
l---------cluster/prod/node/dahlia.site.nix1
-rw-r--r--cluster/prod/node/diplotaxis.nix19
l---------cluster/prod/node/diplotaxis.site.nix1
-rw-r--r--cluster/prod/node/doradille.nix19
l---------cluster/prod/node/doradille.site.nix1
-rw-r--r--cluster/prod/site/orion.nix11
-rw-r--r--cluster/prod/ssh_config12
8 files changed, 81 insertions, 1 deletions
diff --git a/cluster/prod/node/dahlia.nix b/cluster/prod/node/dahlia.nix
new file mode 100644
index 0000000..9b3a15c
--- /dev/null
+++ b/cluster/prod/node/dahlia.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 = "dahlia";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.1.11";
+ deuxfleurs.ipv6 = "2a01:e0a:28f:5e60::11";
+
+ deuxfleurs.cluster_ip = "10.1.1.1";
+ deuxfleurs.is_raft_server = true;
+}
diff --git a/cluster/prod/node/dahlia.site.nix b/cluster/prod/node/dahlia.site.nix
new file mode 120000
index 0000000..3af56c7
--- /dev/null
+++ b/cluster/prod/node/dahlia.site.nix
@@ -0,0 +1 @@
+../site/orion.nix \ No newline at end of file
diff --git a/cluster/prod/node/diplotaxis.nix b/cluster/prod/node/diplotaxis.nix
new file mode 100644
index 0000000..87ee597
--- /dev/null
+++ b/cluster/prod/node/diplotaxis.nix
@@ -0,0 +1,19 @@
+# Configuration file local to this node
+
+{ config, pkgs, ... }:
+
+{
+ # Use the GRUB 2 boot loader.
+ boot.loader.grub.enable = true;
+ boot.loader.grub.version = 2;
+ boot.loader.grub.device = "/dev/nvme0n1"; # or "nodev" for efi only
+
+ networking.hostName = "diplotaxis";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.1.12";
+ deuxfleurs.ipv6 = "2a01:e0a:28f:5e60::12";
+
+ deuxfleurs.cluster_ip = "10.1.1.2";
+ deuxfleurs.is_raft_server = true;
+}
diff --git a/cluster/prod/node/diplotaxis.site.nix b/cluster/prod/node/diplotaxis.site.nix
new file mode 120000
index 0000000..3af56c7
--- /dev/null
+++ b/cluster/prod/node/diplotaxis.site.nix
@@ -0,0 +1 @@
+../site/orion.nix \ No newline at end of file
diff --git a/cluster/prod/node/doradille.nix b/cluster/prod/node/doradille.nix
new file mode 100644
index 0000000..fcad10d
--- /dev/null
+++ b/cluster/prod/node/doradille.nix
@@ -0,0 +1,19 @@
+# Configuration file local to this node
+
+{ config, pkgs, ... }:
+
+{
+ # Use the GRUB 2 boot loader.
+ boot.loader.grub.enable = true;
+ boot.loader.grub.version = 2;
+ boot.loader.grub.device = "/dev/nvme0n1"; # or "nodev" for efi only
+
+ networking.hostName = "doradille";
+
+ deuxfleurs.network_interface = "enp0s31f6";
+ deuxfleurs.lan_ip = "192.168.1.13";
+ deuxfleurs.ipv6 = "2a01:e0a:28f:5e60::13";
+
+ deuxfleurs.cluster_ip = "10.1.1.3";
+ deuxfleurs.is_raft_server = true;
+}
diff --git a/cluster/prod/node/doradille.site.nix b/cluster/prod/node/doradille.site.nix
new file mode 120000
index 0000000..3af56c7
--- /dev/null
+++ b/cluster/prod/node/doradille.site.nix
@@ -0,0 +1 @@
+../site/orion.nix \ No newline at end of file
diff --git a/cluster/prod/site/orion.nix b/cluster/prod/site/orion.nix
new file mode 100644
index 0000000..5a521d0
--- /dev/null
+++ b/cluster/prod/site/orion.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+
+{
+ deuxfleurs.site_name = "orion";
+ deuxfleurs.lan_default_gateway = "192.168.1.254";
+ deuxfleurs.lan_ip_prefix_length = 24;
+ deuxfleurs.ipv6_prefix_length = 64;
+ deuxfleurs.nameservers = [ "192.168.1.254" ];
+
+ networking.firewall.allowedTCPPorts = [ ];
+}
diff --git a/cluster/prod/ssh_config b/cluster/prod/ssh_config
index 4736d0b..068f209 100644
--- a/cluster/prod/ssh_config
+++ b/cluster/prod/ssh_config
@@ -10,4 +10,14 @@ Host courgette
Host celeri
#HostName 2a06:a004:3025:1::33
- HostName 192.168.1.33
+ HostName 192.168.1.33
+
+Host dahlia
+ HostName dahlia.machine.deuxfleurs.fr
+
+Host diplotaxis
+ HostName diplotaxis.machine.deuxfleurs.fr
+
+Host doradille
+ HostName doradille.machine.deuxfleurs.fr
+