Files
terraform-talos/hetzner/common.tf
Serge Logvinov 358858c7c2 update version
2024-08-14 18:10:58 +03:00

18 lines
478 B
HCL

data "hcloud_image" "talos" {
for_each = toset(var.arch)
with_architecture = each.key == "amd64" ? "x86" : "arm"
with_selector = "type=infra"
}
resource "hcloud_ssh_key" "infra" {
name = "infra"
public_key = file("~/.ssh/terraform.pub")
labels = merge(var.tags, { type = "infra" })
}
# resource "talos_cluster_config" "talos_config" {
# cluster_name = var.cluster_name
# endpoint = "https://${hcloud_load_balancer.api.ip}:6443"
# }