provider "proxmox" { endpoint = var.proxmox_endpoint api_token = var.proxmox_api_token insecure = true } locals { talos_versions = ["1.11.4", "1.11.5"] } data "http" "schematic" { url = "https://factory.talos.dev/schematics" method = "POST" request_body = file("${path.module}/schematic.yaml") request_headers = { "Content-Type" = "application/x-yaml" } } locals { schematic_id = jsondecode(data.http.schematic.response_body)["id"] storagepool = "nvme-fastpool" } resource "null_resource" "local_download_talos_image" { for_each = toset(local.talos_versions) provisioner "local-exec" { command = <