Add new staging zone and node
This commit is contained in:
parent
b63c03f635
commit
1c48fd4ae4
6 changed files with 52 additions and 0 deletions
|
@ -40,6 +40,14 @@
|
|||
lan_endpoint = "192.168.1.33:33799";
|
||||
endpoint = "82.64.238.84:33733";
|
||||
}
|
||||
{
|
||||
hostname = "piranha";
|
||||
site_name = "corrin";
|
||||
publicKey = "m9rLf+233X1VColmeVrM/xfDGro5W6Gk5N0zqcf32WY=";
|
||||
IP = "10.14.3.1";
|
||||
lan_endpoint = "192.168.1.25:33799";
|
||||
endpoint = "90.49.20.119:33721";
|
||||
}
|
||||
];
|
||||
|
||||
# Bootstrap IPs for Consul cluster,
|
||||
|
|
|
@ -2,3 +2,8 @@ carcajou.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMf/ioVSSb19S
|
|||
cariacou.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPXTUrXRFhudJBESCqjHCOttzqYPyIzpPOMkI8+SwLRx
|
||||
caribou.machine.deuxfleurs.fr ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPtsVFIoIu6tnYrzlcCbBiQXxNkFSWVMhMznUuSxGZ22
|
||||
origan.df.trinity.fr.eu.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsZas74RT6lCZwuUOPR23nPdbSdpWORyAmRgjoiMVHK
|
||||
piranha.polyno.me,2a01:cb05:8984:3c00:223:24ff:feb0:ea82 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJnpO6zpLWsyyugOoOj+2bUow9TUrcWgURFGGaoyu+co
|
||||
2001:910:1204:1::23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPtsVFIoIu6tnYrzlcCbBiQXxNkFSWVMhMznUuSxGZ22
|
||||
2001:910:1204:1::22 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMf/ioVSSb19Slu+HZLgKt4f1/XsL+K9uMxazSWb/+nQ
|
||||
2001:910:1204:1::21 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPXTUrXRFhudJBESCqjHCOttzqYPyIzpPOMkI8+SwLRx
|
||||
2a01:e0a:5e4:1d0:223:24ff:feaf:fdec ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAsZas74RT6lCZwuUOPR23nPdbSdpWORyAmRgjoiMVHK
|
||||
|
|
21
cluster/staging/node/piranha.nix
Normal file
21
cluster/staging/node/piranha.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Configuration file local to this node
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.timeout = 20;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "piranha";
|
||||
|
||||
deuxfleurs.network_interface = "eno1";
|
||||
deuxfleurs.lan_ip = "192.168.1.25";
|
||||
deuxfleurs.ipv6 = "2a01:cb05:8984:3c00:223:24ff:feb0:ea82";
|
||||
|
||||
deuxfleurs.cluster_ip = "10.14.3.1";
|
||||
deuxfleurs.is_raft_server = false;
|
||||
|
||||
system.stateVersion = "22.11";
|
||||
}
|
1
cluster/staging/node/piranha.site.nix
Symbolic link
1
cluster/staging/node/piranha.site.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
../site/corrin.nix
|
14
cluster/staging/site/corrin.nix
Normal file
14
cluster/staging/site/corrin.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
deuxfleurs.site_name = "corrin";
|
||||
deuxfleurs.lan_default_gateway = "192.168.1.1";
|
||||
deuxfleurs.ipv6_default_gateway = "fe80::7ec1:77ff:fe3e:bb90";
|
||||
deuxfleurs.lan_ip_prefix_length = 24;
|
||||
deuxfleurs.ipv6_prefix_length = 64;
|
||||
deuxfleurs.nameservers = [ "192.168.1.1" ];
|
||||
deuxfleurs.cname_target = "corrin.site.staging.deuxfleurs.org.";
|
||||
deuxfleurs.public_ipv4 = "90.49.20.119";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
}
|
|
@ -11,3 +11,6 @@ Host cariacou
|
|||
|
||||
Host origan
|
||||
HostName origan.df.trinity.fr.eu.org
|
||||
|
||||
Host piranha
|
||||
HostName piranha.polyno.me
|
||||
|
|
Loading…
Reference in a new issue