diff --git a/proxmox.tf b/proxmox.tf index 0ce662e..6c77c7f 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -21,17 +21,8 @@ resource "null_resource" "download_image" { } } - -resource "proxmox_virtual_environment_download_file" "Fedora-iso" { - content_type = "import" - datastore_id = "local" - file_name = "debian-12-generic-amd64-20231228-1609.qcow2" - node_name = "fenix" - url = "https://cloud.debian.org/images/cloud/bookworm/20231228-1609/debian-12-generic-amd64-20231228-1609.qcow2" -} - resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { - depends_on = [proxmox_virtual_environment_download_file.Fedora-iso] + depends_on = [null_resource.download_image] name = "proxmox-kubernetes-VM-template" node_name = "fenix" vm_id = 1002 @@ -64,7 +55,7 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" { disk { datastore_id = "local-lvm" interface = "scsii" - file_id = proxmox_virtual_environment_download_file.Fedora-iso.id + file = "./images/ubuntu-bionic.img" size = 20 }