aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod
diff options
context:
space:
mode:
Diffstat (limited to 'cluster/prod')
-rw-r--r--cluster/prod/node/abricot.nix19
l---------cluster/prod/node/abricot.site.nix1
-rw-r--r--cluster/prod/site/scorpio.nix14
3 files changed, 34 insertions, 0 deletions
diff --git a/cluster/prod/node/abricot.nix b/cluster/prod/node/abricot.nix
new file mode 100644
index 0000000..b092fb2
--- /dev/null
+++ b/cluster/prod/node/abricot.nix
@@ -0,0 +1,19 @@
+# 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 = "abricot";
+
+ deuxfleurs.network_interface = "eno1";
+ deuxfleurs.lan_ip = "192.168.1.41";
+ deuxfleurs.ipv6 = "2a01:e0a:e4:2dd0::41";
+
+ deuxfleurs.cluster_ip = "10.83.4.1";
+ deuxfleurs.is_raft_server = false;
+}
diff --git a/cluster/prod/node/abricot.site.nix b/cluster/prod/node/abricot.site.nix
new file mode 120000
index 0000000..a549793
--- /dev/null
+++ b/cluster/prod/node/abricot.site.nix
@@ -0,0 +1 @@
+../site/scorpio.nix \ No newline at end of file
diff --git a/cluster/prod/site/scorpio.nix b/cluster/prod/site/scorpio.nix
new file mode 100644
index 0000000..b58e25c
--- /dev/null
+++ b/cluster/prod/site/scorpio.nix
@@ -0,0 +1,14 @@
+{ config, pkgs, ... }:
+
+{
+ deuxfleurs.site_name = "scorpio";
+ deuxfleurs.lan_default_gateway = "192.168.1.254";
+ deuxfleurs.ipv6_default_gateway = "2a01:e0a:e4:2dd0::1";
+ deuxfleurs.lan_ip_prefix_length = 24;
+ deuxfleurs.ipv6_prefix_length = 64;
+ deuxfleurs.nameservers = [ "192.168.1.254" ];
+ deuxfleurs.cname_target = "scorpio.site.deuxfleurs.fr.";
+ deuxfleurs.public_ipv4 = "82.65.41.110";
+
+ networking.firewall.allowedTCPPorts = [ 80 443 ];
+}