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
All checks were successful
Tofu Plan pve01.wheatley.in templates / tofu-plan-templates (pull_request) Successful in 28s
This commit is contained in:
parent
fc9bf8e920
commit
171daa5383
1 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ locals {
|
|||
storagepool = "nvme-fastpool"
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_download_file" "talos-image" {
|
||||
resource "proxmox_download_file" "talos-image" {
|
||||
for_each = toset(var.talos_versions)
|
||||
|
||||
node_name = "pve01"
|
||||
|
|
@ -35,7 +35,7 @@ resource "proxmox_virtual_environment_download_file" "talos-image" {
|
|||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "talos-template" {
|
||||
depends_on = [proxmox_virtual_environment_download_file.talos-image]
|
||||
depends_on = [proxmox_download_file.talos-image]
|
||||
for_each = toset(var.talos_versions)
|
||||
|
||||
template = true
|
||||
|
|
@ -63,7 +63,7 @@ resource "proxmox_virtual_environment_vm" "talos-template" {
|
|||
disk {
|
||||
datastore_id = local.storagepool
|
||||
interface = "virtio0"
|
||||
file_id = proxmox_virtual_environment_download_file.talos-image[each.value].id
|
||||
file_id = proxmox_download_file.talos-image[each.value].id
|
||||
file_format = "raw"
|
||||
}
|
||||
efi_disk {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue