infra/devdoc/hosts.md

110 lines
2.3 KiB
Markdown
Raw Normal View History

## Hosts
### `build01`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-08-08 08:43:22 +10:00
- Instance type: AX60
2023-03-26 14:02:59 +10:00
- CPU: AMD Ryzen 7 1700X Eight-Core Processor
- RAM: 64GB
- Drives: 2 x 512 GB SATA SSD
### `build02`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-08-08 08:43:22 +10:00
- Instance type:
2023-03-26 14:02:59 +10:00
- CPU: AMD Ryzen 7 3700X Eight-Core Processor
- RAM: 64GB DDR4 ECC
- Drives: 2 x 1 TB NVME in RAID 1
### `build03`
2023-03-26 14:02:59 +10:00
- Provider: Hetzner
2023-08-08 08:43:22 +10:00
- Instance type: [AX41](https://www.hetzner.com/dedicated-rootserver/ax41-nvme)
2023-03-26 14:02:59 +10:00
- CPU: AMD Ryzen 5 3600 6-Core Processor
- RAM: 64GB DDR4 ECC
- Drives: 2 x 512 GB NVME in RAID 1
### `build04`
2023-03-26 14:02:59 +10:00
- Provider: Oracle cloud
- Instance type: [Ampere A1 Compute](https://www.oracle.com/cloud/compute/arm/)
- CPU: 4 VCPUs on an Ampere Altra (arm64)
- RAM: 24GB
- Drives: 200 GB Block
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
### `web01`
- Provider: Hetzner
2023-08-08 08:43:22 +10:00
- Instance type: [CX31](https://www.hetzner.com/cloud)
- CPU: 2 vCPUs on Intel Xeon
- RAM: 8GB
- Drives: 80GB 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'
```