this repo has no description
1resource "hcloud_ssh_key" "main" {
2 # TODO better key gen
3 name = "workstation"
4 public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN5ue4np7cF34f6dwqH1262fPjkowHQ8irfjVC156PCG"
5}
6
7resource "hcloud_server" "nodes" {
8 for_each = var.nodes
9
10 name = each.key
11 server_type = "cax11"
12 public_net {
13 ipv4_enabled = true
14 ipv6_enabled = true
15 }
16 image = "debian-13" # Only used to bootstrap nixos-anywhere
17 location = each.value.location
18 ssh_keys = [
19 hcloud_ssh_key.main.id
20 ]
21}