Add new cluster nodes
This commit is contained in:
parent
5994e41ad1
commit
88d57f8e34
8 changed files with 81 additions and 1 deletions
18
cluster/prod/node/dahlia.nix
Normal file
18
cluster/prod/node/dahlia.nix
Normal file
|
@ -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;
|
||||||
|
}
|
1
cluster/prod/node/dahlia.site.nix
Symbolic link
1
cluster/prod/node/dahlia.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../site/orion.nix
|
19
cluster/prod/node/diplotaxis.nix
Normal file
19
cluster/prod/node/diplotaxis.nix
Normal file
|
@ -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;
|
||||||
|
}
|
1
cluster/prod/node/diplotaxis.site.nix
Symbolic link
1
cluster/prod/node/diplotaxis.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../site/orion.nix
|
19
cluster/prod/node/doradille.nix
Normal file
19
cluster/prod/node/doradille.nix
Normal file
|
@ -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;
|
||||||
|
}
|
1
cluster/prod/node/doradille.site.nix
Symbolic link
1
cluster/prod/node/doradille.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../site/orion.nix
|
11
cluster/prod/site/orion.nix
Normal file
11
cluster/prod/site/orion.nix
Normal file
|
@ -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 = [ ];
|
||||||
|
}
|
|
@ -10,4 +10,14 @@ Host courgette
|
||||||
|
|
||||||
Host celeri
|
Host celeri
|
||||||
#HostName 2a06:a004:3025:1::33
|
#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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue