aboutsummaryrefslogtreecommitdiff
path: root/cluster
diff options
context:
space:
mode:
Diffstat (limited to 'cluster')
-rw-r--r--cluster/staging/app/core/deploy/core-service.hcl2
-rw-r--r--cluster/staging/app/core/deploy/core-system.hcl2
-rw-r--r--cluster/staging/app/garage/deploy/garage.hcl2
-rw-r--r--cluster/staging/app/telemetry/deploy/telemetry-system.hcl2
-rw-r--r--cluster/staging/app/telemetry/deploy/telemetry.hcl2
-rw-r--r--cluster/staging/cluster.nix8
-rw-r--r--cluster/staging/known_hosts5
-rw-r--r--cluster/staging/node/piranha.nix21
l---------cluster/staging/node/piranha.site.nix1
-rw-r--r--cluster/staging/site/corrin.nix14
-rw-r--r--cluster/staging/ssh_config3
11 files changed, 57 insertions, 5 deletions
diff --git a/cluster/staging/app/core/deploy/core-service.hcl b/cluster/staging/app/core/deploy/core-service.hcl
index e2ec0a0..72f6f0b 100644
--- a/cluster/staging/app/core/deploy/core-service.hcl
+++ b/cluster/staging/app/core/deploy/core-service.hcl
@@ -1,5 +1,5 @@
job "core-service" {
- datacenters = ["neptune", "jupiter"]
+ datacenters = ["neptune", "jupiter", "corrin"]
type = "service"
priority = 90
diff --git a/cluster/staging/app/core/deploy/core-system.hcl b/cluster/staging/app/core/deploy/core-system.hcl
index 722423d..53babd7 100644
--- a/cluster/staging/app/core/deploy/core-system.hcl
+++ b/cluster/staging/app/core/deploy/core-system.hcl
@@ -1,5 +1,5 @@
job "core-system" {
- datacenters = ["neptune", "jupiter"]
+ datacenters = ["neptune", "jupiter", "corrin"]
type = "system"
priority = 90
diff --git a/cluster/staging/app/garage/deploy/garage.hcl b/cluster/staging/app/garage/deploy/garage.hcl
index 03a62cb..f8e14d9 100644
--- a/cluster/staging/app/garage/deploy/garage.hcl
+++ b/cluster/staging/app/garage/deploy/garage.hcl
@@ -2,7 +2,7 @@ job "garage-staging" {
type = "system"
priority = 90
- datacenters = [ "neptune", "jupiter" ]
+ datacenters = [ "neptune", "jupiter", "corrin" ]
update {
max_parallel = 1
diff --git a/cluster/staging/app/telemetry/deploy/telemetry-system.hcl b/cluster/staging/app/telemetry/deploy/telemetry-system.hcl
index cf78053..1f0e64e 100644
--- a/cluster/staging/app/telemetry/deploy/telemetry-system.hcl
+++ b/cluster/staging/app/telemetry/deploy/telemetry-system.hcl
@@ -1,5 +1,5 @@
job "telemetry-system" {
- datacenters = ["neptune", "jupiter"]
+ datacenters = ["neptune", "jupiter", "corrin"]
type = "system"
priority = "100"
diff --git a/cluster/staging/app/telemetry/deploy/telemetry.hcl b/cluster/staging/app/telemetry/deploy/telemetry.hcl
index 4b9af55..a3dacf0 100644
--- a/cluster/staging/app/telemetry/deploy/telemetry.hcl
+++ b/cluster/staging/app/telemetry/deploy/telemetry.hcl
@@ -1,5 +1,5 @@
job "telemetry" {
- datacenters = ["neptune", "jupiter"]
+ datacenters = ["neptune", "jupiter", "corrin"]
type = "service"
group "prometheus" {
diff --git a/cluster/staging/cluster.nix b/cluster/staging/cluster.nix
index 54e4cd8..c2db0fd 100644
--- a/cluster/staging/cluster.nix
+++ b/cluster/staging/cluster.nix
@@ -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,
diff --git a/cluster/staging/known_hosts b/cluster/staging/known_hosts
index 68f25c0..0413047 100644
--- a/cluster/staging/known_hosts
+++ b/cluster/staging/known_hosts
@@ -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
diff --git a/cluster/staging/node/piranha.nix b/cluster/staging/node/piranha.nix
new file mode 100644
index 0000000..22f8108
--- /dev/null
+++ b/cluster/staging/node/piranha.nix
@@ -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";
+}
diff --git a/cluster/staging/node/piranha.site.nix b/cluster/staging/node/piranha.site.nix
new file mode 120000
index 0000000..0a97c41
--- /dev/null
+++ b/cluster/staging/node/piranha.site.nix
@@ -0,0 +1 @@
+../site/corrin.nix \ No newline at end of file
diff --git a/cluster/staging/site/corrin.nix b/cluster/staging/site/corrin.nix
new file mode 100644
index 0000000..98151f0
--- /dev/null
+++ b/cluster/staging/site/corrin.nix
@@ -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 ];
+}
diff --git a/cluster/staging/ssh_config b/cluster/staging/ssh_config
index e1eecc3..c8860a4 100644
--- a/cluster/staging/ssh_config
+++ b/cluster/staging/ssh_config
@@ -11,3 +11,6 @@ Host cariacou
Host origan
HostName origan.df.trinity.fr.eu.org
+
+Host piranha
+ HostName piranha.polyno.me