From 0e0b848d078b81ae0c5fd13d651b26f657383f1f Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Sat, 15 Nov 2025 18:47:20 +0100 Subject: [PATCH] feat: Boot from imported image --- .../k8s-wheatley/modules/talos-image/main.tf | 35 ++++++++++++------- .../modules/talos-image/outputs.tf | 4 +++ .../k8s-wheatley/modules/talos-node/main.tf | 14 +++++--- 3 files changed, 36 insertions(+), 17 deletions(-) create mode 100644 pve01.wheatley.in/k8s-wheatley/modules/talos-image/outputs.tf diff --git a/pve01.wheatley.in/k8s-wheatley/modules/talos-image/main.tf b/pve01.wheatley.in/k8s-wheatley/modules/talos-image/main.tf index d5fb8d8..7675878 100644 --- a/pve01.wheatley.in/k8s-wheatley/modules/talos-image/main.tf +++ b/pve01.wheatley.in/k8s-wheatley/modules/talos-image/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { proxmox = { source = "bpg/proxmox" - version = "0.85.1" + version = "0.86.0" } } } @@ -18,17 +18,28 @@ data "http" "schematic" { locals { schematic_id = jsondecode(data.http.schematic.response_body)["id"] - iso_url = "${"https://factory.talos.dev/image"}/${local.schematic_id}/v${var.talos_version}/nocloud-amd64-secureboot.iso" - iso_file = "talos-${var.talos_version}-nocloud-amd64-secureboot.iso" + iso_url = "${"https://factory.talos.dev/image"}/${local.schematic_id}/v${var.talos_version}/nocloud-amd64-secureboot.raw.xz" + iso_file = "talos-${var.talos_version}-nocloud-amd64-secureboot.raw" } -resource "proxmox_virtual_environment_download_file" "talos-image" { - node_name = "pve01" - content_type = "iso" - datastore_id = "local" - overwrite = true - - url = local.iso_url - file_name = local.iso_file - +resource "null_resource" "local_download_talos_image" { + provisioner "local-exec" { + command = <