infra/devdoc/hosts.md

100 lines
2.2 KiB
Markdown
Raw Normal View History

## Hosts
### `build01`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-12-02 09:58:17 +10:00
- Instance type: [AX41](https://www.hetzner.com/dedicated-rootserver/ax41-nvme)
- CPU: AMD Ryzen 5 3600 6-Core Processor
- RAM: 64GB DDR4 ECC
- Drives: 2 x 512 GB NVME in RAID 0
### `build02`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-12-11 11:28:40 +10:00
- CPU: AMD Ryzen 9 3900 12-Core Processor
- RAM: 128GB DDR4 ECC
- Drives: 2 x 1.92 TB NVME in RAID 0
### `build03`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-12-02 09:58:17 +10:00
- CPU: AMD Ryzen 9 3900 12-Core Processor
- RAM: 128GB DDR4 ECC
- Drives: 2 x 1.92 TB NVME in RAID 1
### `build04`
2023-12-14 09:39:50 +10:00
- Provider: Hetzner
- Instance type: [RX170](https://www.hetzner.com/dedicated-rootserver/rx170)
- CPU: Ampere Altra Q80-30 80-Core Processor
- RAM: 128GB DDR4 ECC
- Drives: 2 x 960 GB NVME in RAID 0
2023-05-16 18:58:13 +10:00
### `darwin02`
2023-07-17 21:13:04 +10:00
- Provider: Hetzner
- Instance type: [Apple Mac mini M1](https://docs.hetzner.com/robot/dedicated-server/mac-mini/getting-started/)
2023-05-16 18:58:13 +10:00
- CPU: Apple M1
2023-07-17 21:13:04 +10:00
- RAM: 16GB
2023-05-16 18:58:13 +10:00
- Drives: 256GB SSD
2023-07-17 09:37:43 +10:00
### `darwin03`
- Provider: Hetzner
- Instance type: [Apple Mac mini M1](https://docs.hetzner.com/robot/dedicated-server/mac-mini/getting-started/)
- CPU: Apple M1
- RAM: 16GB
- Drives: 256GB SSD
2023-07-22 09:50:53 +10:00
### `web02`
- Provider: Gandi
- Instance type: [V-R4](https://www.gandi.net/en-GB/cloud/vps)
- CPU: 2 CPU
- RAM: 4GB
- Drives: 25GB
2023-03-26 14:07:51 +10:00
## SSH config:
You will need to set your admin username if it doesn't match your local username.
```
Host *.nix-community.org
User <youradminusername>
```
## Deployment commands:
```console
$ ./inv deploy
```
If you want to reboot a machine, use the following command:
```console
$ inv deploy --hosts build02 reboot --hosts build02
```
## Install/Fix system from Hetzner recovery mode
1. Copy your ssh key to the recovery system so that the kexec image can re-use it.
2023-03-26 14:02:59 +10:00
```console
yourmachine> ssh-copy-id root@build0X.nix-community.org
```
2. Download and boot into kexec-image:
2023-03-26 14:02:59 +10:00
```console
$ curl -L https://github.com/nix-community/nixos-images/releases/download/nixos-unstable/nixos-kexec-installer-x86_64-linux.tar.gz | tar -xzf- -C /root
$ /root/kexec/run
```
### Debug VM
You can start a vm from the rescue system in order to debug the boot:
```console
$ nix-shell -p qemu_kvm --run 'qemu-kvm -m 10G -hda /dev/sda -hdb /dev/sdb -curses -cpu host -enable-kvm'
```