diff --git a/hetzner/README.md b/hetzner/README.md index 67719a3..7bd3f9b 100644 --- a/hetzner/README.md +++ b/hetzner/README.md @@ -57,11 +57,11 @@ controlplane = { }, "fsn1" = { count = 1, - type = "cpx21", + type = "cax21", }, "hel1" = { count = 1, - type = "cax21", + type = "cpx21", } } diff --git a/hetzner/images/hetzner.pkr.hcl b/hetzner/images/hetzner.pkr.hcl index 51df0da..3ebae0e 100644 --- a/hetzner/images/hetzner.pkr.hcl +++ b/hetzner/images/hetzner.pkr.hcl @@ -9,14 +9,17 @@ packer { } source "hcloud" "talos" { - token = var.hcloud_token - rescue = "linux64" - image = "debian-11" - location = var.hcloud_location - server_type = var.hcloud_type - ssh_username = "root" + token = var.hcloud_token + rescue = "linux64" + image = "debian-11" + location = var.hcloud_location + server_type = var.hcloud_type - snapshot_name = "talos system disk" + ssh_username = "root" + ssh_timeout = "15m" + ssh_disable_agent_forwarding = true + + snapshot_name = "talos system disk ${substr(var.hcloud_type, 0, 2) == "ca" ? "arm64" : "amd64"}" snapshot_labels = { type = "infra", os = "talos",