From e06d6b14a318fcaa737f9c61aa8eecd24eecd2c0 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 12 Jun 2023 13:41:34 +0200 Subject: add ananas, set it raft server instead of dahlia --- cluster/prod/node/ananas.nix | 15 +++++++++++++++ cluster/prod/node/ananas.site.nix | 1 + cluster/prod/node/dahlia.nix | 1 - 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 cluster/prod/node/ananas.nix create mode 120000 cluster/prod/node/ananas.site.nix (limited to 'cluster/prod/node') diff --git a/cluster/prod/node/ananas.nix b/cluster/prod/node/ananas.nix new file mode 100644 index 0000000..50ee3d5 --- /dev/null +++ b/cluster/prod/node/ananas.nix @@ -0,0 +1,15 @@ +# 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; + + deuxfleurs.hostName = "ananas"; + deuxfleurs.staticIPv4.address = "192.168.1.42"; + deuxfleurs.staticIPv6.address = "2a01:e0a:e4:2dd0::42"; + deuxfleurs.isRaftServer = true; +} diff --git a/cluster/prod/node/ananas.site.nix b/cluster/prod/node/ananas.site.nix new file mode 120000 index 0000000..a549793 --- /dev/null +++ b/cluster/prod/node/ananas.site.nix @@ -0,0 +1 @@ +../site/scorpio.nix \ No newline at end of file diff --git a/cluster/prod/node/dahlia.nix b/cluster/prod/node/dahlia.nix index ee9e7aa..121a34d 100644 --- a/cluster/prod/node/dahlia.nix +++ b/cluster/prod/node/dahlia.nix @@ -10,5 +10,4 @@ deuxfleurs.hostName = "dahlia"; deuxfleurs.staticIPv4.address = "192.168.1.11"; deuxfleurs.staticIPv6.address = "2a01:e0a:28f:5e60::11"; - deuxfleurs.isRaftServer = true; } -- cgit v1.2.3