build02: switch to new hardware

This commit is contained in:
zowoq 2023-12-11 11:28:40 +10:00
parent 1ecfb73a21
commit 4143922c6b
5 changed files with 10 additions and 35 deletions
devdoc
hosts/build02
modules/nixos/monitoring
terraform

View file

@ -11,10 +11,9 @@
### `build02`
- Provider: Hetzner
- Instance type:
- CPU: AMD Ryzen 7 3700X Eight-Core Processor
- RAM: 64GB DDR4 ECC
- Drives: 2 x 1 TB NVME in RAID 1
- CPU: AMD Ryzen 9 3900 12-Core Processor
- RAM: 128GB DDR4 ECC
- Drives: 2 x 1.92 TB NVME in RAID 0
### `build03`

View file

@ -8,20 +8,16 @@
./nixpkgs-update-backup.nix
inputs.self.nixosModules.common
inputs.self.nixosModules.builder
./zfs.nix
inputs.self.nixosModules.disko-raid
];
# /boot is a mirror raid
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
boot.loader.grub.enable = true;
boot.swraid.enable = true;
boot.loader.grub.extraConfig = "insmod mdraid1x";
nixCommunity.disko.raidLevel = 0; # more disk space, we don't have much state to restore anyway
networking.hostName = "build02";
networking.hostId = "af9ccc71";
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:4a:2b02::1/64";
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3b:41d9::1";
system.stateVersion = "20.09";
system.stateVersion = "23.11";
}

View file

@ -1,20 +0,0 @@
{
fileSystems."/" = {
device = "zroot/root/nixos";
fsType = "zfs";
};
fileSystems."/home" = {
device = "zroot/root/home";
fsType = "zfs";
# We don't want servers to go in systemd rescue mode, but rather having
# failed mounts show up in monitoring
options = [ "nofail" ];
};
fileSystems."/boot" = {
device = "/dev/md127";
fsType = "ext4";
options = [ "nofail" ];
};
}

View file

@ -26,7 +26,7 @@
annotations.description = "{{$labels.host}} should have a running {{$labels.name}}";
};
SmartErrors.expr = lib.mkForce ''smart_device_health_ok{enabled!="Disabled", host!~"(build02|build01)"} != 1'';
SmartErrors.expr = lib.mkForce ''smart_device_health_ok{enabled!="Disabled", host!="build01"} != 1'';
};
};
}

View file

@ -36,14 +36,14 @@ resource "cloudflare_record" "nix-community-org-build01-AAAA" {
resource "cloudflare_record" "nix-community-org-build02-A" {
zone_id = local.nix_community_zone_id
name = "build02"
value = "95.217.109.189"
value = "65.21.133.211"
type = "A"
}
resource "cloudflare_record" "nix-community-org-build02-AAAA" {
zone_id = local.nix_community_zone_id
name = "build02"
value = "2a01:4f9:4a:2b02::1"
value = "2a01:4f9:3b:41d9::1"
type = "AAAA"
}