Files
terraform-talos/hetzner/common.tf
Serge Logvinov d9140bdbc2 refactoring
2023-04-15 16:42:38 +03:00

18 lines
488 B
HCL

data "hcloud_image" "talos" {
for_each = toset(["amd64", "arm64"])
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"
# }