chore: Use proxmox_download_file in stead of deprecated resource #17

Merged
Peter merged 3 commits from pgi-update-resource into main 2026-04-17 20:32:52 +02:00
Owner
No description provided.
Peter added 1 commit 2026-04-17 20:28:49 +02:00
chore: Use proxmox_download_file in stead of deprecated resource
All checks were successful
Tofu Plan pve01.wheatley.in templates / tofu-plan-templates (pull_request) Successful in 28s
171daa5383
First-time contributor

Tofu Plan pve01.wheatley.in templates

OpenTofu Format and Style 🖌

OpenTofu Initialization ⚙️

OpenTofu Validation 🤖

Validation Output
Success! The configuration is valid.

OpenTofu Plan 📖

Show Plan
OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  - destroy

OpenTofu will perform the following actions:

  # module.talos.proxmox_download_file.talos-image[1.12.6] will be created
  + resource proxmox_download_file talos-image {
      + content_type        = iso
      + datastore_id        = local
      + file_name           = talos-1.12.6-nocloud-amd64-secureboot.iso
      + id                  = (known after apply)
      + node_name           = pve01
      + overwrite           = true
      + overwrite_unmanaged = false
      + size                = (known after apply)
      + upload_timeout      = 600
      + url                 = https://factory.talos.dev/image/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b/v1.12.6/nocloud-amd64-secureboot.iso
      + verify              = true
    }

  # module.talos.proxmox_virtual_environment_download_file.talos-image[1.12.2] will be destroyed
  # (because proxmox_virtual_environment_download_file.talos-image is not in configuration)
  - resource proxmox_virtual_environment_download_file talos-image {
      - content_type        = iso -> null
      - datastore_id        = local -> null
      - file_name           = talos-1.12.2-nocloud-amd64-secureboot.iso -> null
      - id                  = local:iso/talos-1.12.2-nocloud-amd64-secureboot.iso -> null
      - node_name           = pve01 -> null
      - overwrite           = true -> null
      - overwrite_unmanaged = false -> null
      - size                = 215265280 -> null
      - upload_timeout      = 600 -> null
      - url                 = https://factory.talos.dev/image/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b/v1.12.2/nocloud-amd64-secureboot.iso -> null
      - verify              = true -> null
    }

  # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.2] will be destroyed
  # (because key [1.12.2] is not in for_each map)
  - resource proxmox_virtual_environment_vm talos-template {
      - acpi                                 = true -> null
      - bios                                 = ovmf -> null
      - boot_order                           = [
          - virtio0,
          - net0,
        ] -> null
      - delete_unreferenced_disks_on_destroy = true -> null
      - id                                   = 11122 -> null
      - ipv4_addresses                       = [] -> null
      - ipv6_addresses                       = [] -> null
      - keyboard_layout                      = en-us -> null
      - mac_addresses                        = [] -> null
      - machine                              = q35 -> null
      - migrate                              = false -> null
      - name                                 = talos-template-1.12.2 -> null
      - network_device                       = [] -> null
      - network_interface_names              = [] -> null
      - node_name                            = pve01 -> null
      - on_boot                              = true -> null
      - protection                           = false -> null
      - purge_on_destroy                     = true -> null
      - reboot                               = false -> null
      - reboot_after_update                  = true -> null
      - scsi_hardware                        = virtio-scsi-pci -> null
      - stop_on_destroy                      = false -> null
      - tablet_device                        = true -> null
      - tags                                 = [
          - tofu,
        ] -> null
      - template                             = true -> null
      - timeout_clone                        = 1800 -> null
      - timeout_create                       = 1800 -> null
      - timeout_migrate                      = 1800 -> null
      - timeout_move_disk                    = 1800 -> null
      - timeout_reboot                       = 1800 -> null
      - timeout_shutdown_vm                  = 1800 -> null
      - timeout_start_vm                     = 1800 -> null
      - timeout_stop_vm                      = 300 -> null
      - vm_id                                = 11122 -> null

      - agent {
          - enabled = true -> null
          - timeout = 15m -> null
          - trim    = false -> null
          - type    = virtio -> null
        }

      - cpu {
          - cores      = 2 -> null
          - flags      = [] -> null
          - hotplugged = 0 -> null
          - limit      = 0 -> null
          - numa       = false -> null
          - sockets    = 1 -> null
          - type       = host -> null
          - units      = 100 -> null
        }

      - disk {
          - aio               = io_uring -> null
          - backup            = true -> null
          - cache             = none -> null
          - datastore_id      = nvme-fastpool -> null
          - discard           = ignore -> null
          - file_format       = raw -> null
          - file_id           = local:iso/talos-1.12.2-nocloud-amd64-secureboot.iso -> null
          - interface         = virtio0 -> null
          - iothread          = false -> null
          - path_in_datastore = vm-11122-disk-2 -> null
          - replicate         = true -> null
          - size              = 8 -> null
          - ssd               = false -> null
        }

      - efi_disk {
          - datastore_id      = nvme-fastpool -> null
          - file_format       = raw -> null
          - pre_enrolled_keys = false -> null
          - type              = 4m -> null
        }

      - memory {
          - dedicated      = 2048 -> null
          - floating       = 0 -> null
          - keep_hugepages = false -> null
          - shared         = 0 -> null
        }

      - operating_system {
          - type = l26 -> null
        }

      - tpm_state {
          - datastore_id = nvme-fastpool -> null
          - version      = v2.0 -> null
        }
    }

  # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6] will be created
  + resource proxmox_virtual_environment_vm talos-template {
      + acpi                                 = true
      + bios                                 = ovmf
      + boot_order                           = (known after apply)
      + delete_unreferenced_disks_on_destroy = true
      + hotplug                              = (known after apply)
      + id                                   = (known after apply)
      + ipv4_addresses                       = (known after apply)
      + ipv6_addresses                       = (known after apply)
      + keyboard_layout                      = en-us
      + mac_addresses                        = (known after apply)
      + machine                              = q35
      + migrate                              = false
      + name                                 = talos-template-1.12.6
      + network_device                       = (known after apply)
      + network_interface_names              = (known after apply)
      + node_name                            = pve01
      + on_boot                              = true
      + protection                           = false
      + purge_on_destroy                     = true
      + reboot                               = false
      + reboot_after_update                  = true
      + scsi_hardware                        = virtio-scsi-pci
      + stop_on_destroy                      = false
      + tablet_device                        = true
      + tags                                 = [
          + tofu,
        ]
      + template                             = true
      + timeout_clone                        = 1800
      + timeout_create                       = 1800
      + timeout_migrate                      = 1800
      + timeout_move_disk                    = 1800
      + timeout_reboot                       = 1800
      + timeout_shutdown_vm                  = 1800
      + timeout_start_vm                     = 1800
      + timeout_stop_vm                      = 300
      + vm_id                                = 11126

      + agent {
          + enabled = true
          + timeout = 15m
          + trim    = false
          + type    = virtio
        }

      + cpu {
          + cores      = 2
          + hotplugged = 0
          + limit      = 0
          + numa       = false
          + sockets    = 1
          + type       = host
          + units      = (known after apply)
        }

      + disk {
          + aio               = io_uring
          + backup            = true
          + cache             = none
          + datastore_id      = nvme-fastpool
          + discard           = ignore
          + file_format       = raw
          + file_id           = (known after apply)
          + interface         = virtio0
          + iothread          = false
          + path_in_datastore = (known after apply)
          + replicate         = true
          + size              = 8
          + ssd               = false
        }

      + efi_disk {
          + datastore_id      = nvme-fastpool
          + file_format       = raw
          + pre_enrolled_keys = false
          + type              = 4m
        }

      + memory {
          + dedicated      = 2048
          + floating       = 0
          + keep_hugepages = false
          + shared         = 0
        }

      + operating_system {
          + type = l26
        }

      + tpm_state {
          + datastore_id = nvme-fastpool
          + version      = v2.0
        }

      + vga (known after apply)
    }

Plan: 2 to add, 0 to change, 2 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so OpenTofu can't
guarantee to take exactly these actions if you run tofu apply now.
### Tofu Plan pve01.wheatley.in templates #### ✅ OpenTofu Format and Style 🖌 #### ✅ OpenTofu Initialization ⚙️ #### ✅ OpenTofu Validation 🤖 <details><summary>Validation Output</summary> ``` Success! The configuration is valid. ``` </details> #### ✅ OpenTofu Plan 📖 <details><summary>Show Plan</summary> ``` OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create - destroy OpenTofu will perform the following actions: # module.talos.proxmox_download_file.talos-image[1.12.6] will be created + resource proxmox_download_file talos-image { + content_type = iso + datastore_id = local + file_name = talos-1.12.6-nocloud-amd64-secureboot.iso + id = (known after apply) + node_name = pve01 + overwrite = true + overwrite_unmanaged = false + size = (known after apply) + upload_timeout = 600 + url = https://factory.talos.dev/image/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b/v1.12.6/nocloud-amd64-secureboot.iso + verify = true } # module.talos.proxmox_virtual_environment_download_file.talos-image[1.12.2] will be destroyed # (because proxmox_virtual_environment_download_file.talos-image is not in configuration) - resource proxmox_virtual_environment_download_file talos-image { - content_type = iso -> null - datastore_id = local -> null - file_name = talos-1.12.2-nocloud-amd64-secureboot.iso -> null - id = local:iso/talos-1.12.2-nocloud-amd64-secureboot.iso -> null - node_name = pve01 -> null - overwrite = true -> null - overwrite_unmanaged = false -> null - size = 215265280 -> null - upload_timeout = 600 -> null - url = https://factory.talos.dev/image/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b/v1.12.2/nocloud-amd64-secureboot.iso -> null - verify = true -> null } # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.2] will be destroyed # (because key [1.12.2] is not in for_each map) - resource proxmox_virtual_environment_vm talos-template { - acpi = true -> null - bios = ovmf -> null - boot_order = [ - virtio0, - net0, ] -> null - delete_unreferenced_disks_on_destroy = true -> null - id = 11122 -> null - ipv4_addresses = [] -> null - ipv6_addresses = [] -> null - keyboard_layout = en-us -> null - mac_addresses = [] -> null - machine = q35 -> null - migrate = false -> null - name = talos-template-1.12.2 -> null - network_device = [] -> null - network_interface_names = [] -> null - node_name = pve01 -> null - on_boot = true -> null - protection = false -> null - purge_on_destroy = true -> null - reboot = false -> null - reboot_after_update = true -> null - scsi_hardware = virtio-scsi-pci -> null - stop_on_destroy = false -> null - tablet_device = true -> null - tags = [ - tofu, ] -> null - template = true -> null - timeout_clone = 1800 -> null - timeout_create = 1800 -> null - timeout_migrate = 1800 -> null - timeout_move_disk = 1800 -> null - timeout_reboot = 1800 -> null - timeout_shutdown_vm = 1800 -> null - timeout_start_vm = 1800 -> null - timeout_stop_vm = 300 -> null - vm_id = 11122 -> null - agent { - enabled = true -> null - timeout = 15m -> null - trim = false -> null - type = virtio -> null } - cpu { - cores = 2 -> null - flags = [] -> null - hotplugged = 0 -> null - limit = 0 -> null - numa = false -> null - sockets = 1 -> null - type = host -> null - units = 100 -> null } - disk { - aio = io_uring -> null - backup = true -> null - cache = none -> null - datastore_id = nvme-fastpool -> null - discard = ignore -> null - file_format = raw -> null - file_id = local:iso/talos-1.12.2-nocloud-amd64-secureboot.iso -> null - interface = virtio0 -> null - iothread = false -> null - path_in_datastore = vm-11122-disk-2 -> null - replicate = true -> null - size = 8 -> null - ssd = false -> null } - efi_disk { - datastore_id = nvme-fastpool -> null - file_format = raw -> null - pre_enrolled_keys = false -> null - type = 4m -> null } - memory { - dedicated = 2048 -> null - floating = 0 -> null - keep_hugepages = false -> null - shared = 0 -> null } - operating_system { - type = l26 -> null } - tpm_state { - datastore_id = nvme-fastpool -> null - version = v2.0 -> null } } # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6] will be created + resource proxmox_virtual_environment_vm talos-template { + acpi = true + bios = ovmf + boot_order = (known after apply) + delete_unreferenced_disks_on_destroy = true + hotplug = (known after apply) + id = (known after apply) + ipv4_addresses = (known after apply) + ipv6_addresses = (known after apply) + keyboard_layout = en-us + mac_addresses = (known after apply) + machine = q35 + migrate = false + name = talos-template-1.12.6 + network_device = (known after apply) + network_interface_names = (known after apply) + node_name = pve01 + on_boot = true + protection = false + purge_on_destroy = true + reboot = false + reboot_after_update = true + scsi_hardware = virtio-scsi-pci + stop_on_destroy = false + tablet_device = true + tags = [ + tofu, ] + template = true + timeout_clone = 1800 + timeout_create = 1800 + timeout_migrate = 1800 + timeout_move_disk = 1800 + timeout_reboot = 1800 + timeout_shutdown_vm = 1800 + timeout_start_vm = 1800 + timeout_stop_vm = 300 + vm_id = 11126 + agent { + enabled = true + timeout = 15m + trim = false + type = virtio } + cpu { + cores = 2 + hotplugged = 0 + limit = 0 + numa = false + sockets = 1 + type = host + units = (known after apply) } + disk { + aio = io_uring + backup = true + cache = none + datastore_id = nvme-fastpool + discard = ignore + file_format = raw + file_id = (known after apply) + interface = virtio0 + iothread = false + path_in_datastore = (known after apply) + replicate = true + size = 8 + ssd = false } + efi_disk { + datastore_id = nvme-fastpool + file_format = raw + pre_enrolled_keys = false + type = 4m } + memory { + dedicated = 2048 + floating = 0 + keep_hugepages = false + shared = 0 } + operating_system { + type = l26 } + tpm_state { + datastore_id = nvme-fastpool + version = v2.0 } + vga (known after apply) } Plan: 2 to add, 0 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so OpenTofu can't guarantee to take exactly these actions if you run tofu apply now. ``` </details>
Peter added 1 commit 2026-04-17 20:30:22 +02:00
chore: Bump talos versions
All checks were successful
Tofu Plan pve01.wheatley.in templates / tofu-plan-templates (pull_request) Successful in 20s
0543790f1b
Peter added 1 commit 2026-04-17 20:32:01 +02:00
fix; Remove rc release
All checks were successful
Tofu Plan pve01.wheatley.in templates / tofu-plan-templates (pull_request) Successful in 22s
b3f9e90588
Peter merged commit 8afd814b77 into main 2026-04-17 20:32:52 +02:00
First-time contributor

Tofu Apply pve01.wheatley.in templates

OpenTofu Format and Style 🖌

OpenTofu Initialization ⚙️

OpenTofu Validation 🤖

Validation Output
Success! The configuration is valid.

OpenTofu Apply 🚀

Show Apply
OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place (current -> planned)

OpenTofu will perform the following actions:

  # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6] will be updated in-place
  ~ resource proxmox_virtual_environment_vm talos-template {
        id                                   = 11126
      ~ ipv4_addresses                       = [] -> (known after apply)
      ~ ipv6_addresses                       = [] -> (known after apply)
        name                                 = talos-template-1.12.6
      ~ network_interface_names              = [] -> (known after apply)
        tags                                 = [
            tofu,
        ]
        # (28 unchanged attributes hidden)

        # (7 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6]: Modifying... [id=11126]
module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6]: Modifications complete after 1s [id=11126]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
### Tofu Apply pve01.wheatley.in templates #### ✅ OpenTofu Format and Style 🖌 #### ✅ OpenTofu Initialization ⚙️ #### ✅ OpenTofu Validation 🤖 <details><summary>Validation Output</summary> ``` Success! The configuration is valid. ``` </details> #### ✅ OpenTofu Apply 🚀 <details><summary>Show Apply</summary> ``` OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place (current -> planned) OpenTofu will perform the following actions: # module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6] will be updated in-place ~ resource proxmox_virtual_environment_vm talos-template { id = 11126 ~ ipv4_addresses = [] -> (known after apply) ~ ipv6_addresses = [] -> (known after apply) name = talos-template-1.12.6 ~ network_interface_names = [] -> (known after apply) tags = [ tofu, ] # (28 unchanged attributes hidden) # (7 unchanged blocks hidden) } Plan: 0 to add, 1 to change, 0 to destroy. module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6]: Modifying... [id=11126] module.talos.proxmox_virtual_environment_vm.talos-template[1.12.6]: Modifications complete after 1s [id=11126] Apply complete! Resources: 0 added, 1 changed, 0 destroyed. ``` </details>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: wheatley/infrastructure#17
No description provided.