build02: switch to new hardware
This commit is contained in:
parent
1ecfb73a21
commit
4143922c6b
5 changed files with 10 additions and 35 deletions
devdoc
hosts/build02
modules/nixos/monitoring
terraform
|
@ -11,10 +11,9 @@
|
||||||
### `build02`
|
### `build02`
|
||||||
|
|
||||||
- Provider: Hetzner
|
- Provider: Hetzner
|
||||||
- Instance type:
|
- CPU: AMD Ryzen 9 3900 12-Core Processor
|
||||||
- CPU: AMD Ryzen 7 3700X Eight-Core Processor
|
- RAM: 128GB DDR4 ECC
|
||||||
- RAM: 64GB DDR4 ECC
|
- Drives: 2 x 1.92 TB NVME in RAID 0
|
||||||
- Drives: 2 x 1 TB NVME in RAID 1
|
|
||||||
|
|
||||||
### `build03`
|
### `build03`
|
||||||
|
|
||||||
|
|
|
@ -8,20 +8,16 @@
|
||||||
./nixpkgs-update-backup.nix
|
./nixpkgs-update-backup.nix
|
||||||
inputs.self.nixosModules.common
|
inputs.self.nixosModules.common
|
||||||
inputs.self.nixosModules.builder
|
inputs.self.nixosModules.builder
|
||||||
./zfs.nix
|
inputs.self.nixosModules.disko-raid
|
||||||
];
|
];
|
||||||
|
|
||||||
# /boot is a mirror raid
|
nixCommunity.disko.raidLevel = 0; # more disk space, we don't have much state to restore anyway
|
||||||
boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ];
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.swraid.enable = true;
|
|
||||||
boot.loader.grub.extraConfig = "insmod mdraid1x";
|
|
||||||
|
|
||||||
networking.hostName = "build02";
|
networking.hostName = "build02";
|
||||||
networking.hostId = "af9ccc71";
|
networking.hostId = "af9ccc71";
|
||||||
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
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";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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" ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -26,7 +26,7 @@
|
||||||
annotations.description = "{{$labels.host}} should have a running {{$labels.name}}";
|
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'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,14 +36,14 @@ resource "cloudflare_record" "nix-community-org-build01-AAAA" {
|
||||||
resource "cloudflare_record" "nix-community-org-build02-A" {
|
resource "cloudflare_record" "nix-community-org-build02-A" {
|
||||||
zone_id = local.nix_community_zone_id
|
zone_id = local.nix_community_zone_id
|
||||||
name = "build02"
|
name = "build02"
|
||||||
value = "95.217.109.189"
|
value = "65.21.133.211"
|
||||||
type = "A"
|
type = "A"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "nix-community-org-build02-AAAA" {
|
resource "cloudflare_record" "nix-community-org-build02-AAAA" {
|
||||||
zone_id = local.nix_community_zone_id
|
zone_id = local.nix_community_zone_id
|
||||||
name = "build02"
|
name = "build02"
|
||||||
value = "2a01:4f9:4a:2b02::1"
|
value = "2a01:4f9:3b:41d9::1"
|
||||||
type = "AAAA"
|
type = "AAAA"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue