forked from Deuxfleurs/nixcfg
Add bespin machines
This commit is contained in:
parent
38a544d9c4
commit
6bafa20bf6
7 changed files with 69 additions and 0 deletions
18
cluster/prod/node/df-ykl.nix
Normal file
18
cluster/prod/node/df-ykl.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 = "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;
|
||||
}
|
1
cluster/prod/node/df-ykl.site.nix
Symbolic link
1
cluster/prod/node/df-ykl.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
../site/bespin.nix
|
18
cluster/prod/node/df-ymf.nix
Normal file
18
cluster/prod/node/df-ymf.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 = "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;
|
||||
}
|
1
cluster/prod/node/df-ymf.site.nix
Symbolic link
1
cluster/prod/node/df-ymf.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
../site/bespin.nix
|
18
cluster/prod/node/df-ymk.nix
Normal file
18
cluster/prod/node/df-ymk.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 = "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;
|
||||
}
|
1
cluster/prod/node/df-ymk.site.nix
Symbolic link
1
cluster/prod/node/df-ymk.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
../site/bespin.nix
|
12
cluster/prod/site/bespin.nix
Normal file
12
cluster/prod/site/bespin.nix
Normal file
|
@ -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 ];
|
||||
}
|
Loading…
Reference in a new issue