mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-29 17:42:47 +00:00
18 lines
478 B
HCL
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"
|
|
# }
|