fixing broken URL for template

This commit is contained in:
Matt Reeves 2024-08-10 23:21:12 -04:00
parent cb5835e0a7
commit 7cfbcc7d17
2 changed files with 2 additions and 10 deletions

View file

@ -8,7 +8,7 @@ resource "proxmox_virtual_environment_vm" "Ubuntu-22-Template" {
disk { disk {
datastore_id = "Fast2Tb" datastore_id = "Fast2Tb"
file_id = proxmox_virtual_environment_download_file.ubuntu_cloud_image_22.id file_id = "local:iso/jammy-server-cloudimg-amd64.img"
interface = "scsi0" interface = "scsi0"
size = 4 size = 4
} }
@ -38,11 +38,3 @@ vga {
} }
} }
resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image_22" {
content_type = "iso"
datastore_id = "local"
node_name = "prox"
url = "https://cloud-images.ubuntu.com/jammy/20240720/jammy-server-cloudimg-amd64.img"
}

View file

@ -3,7 +3,7 @@ resource "proxmox_virtual_environment_vm" "Windows11" {
node_name = "pve2" node_name = "pve2"
vm_id = 250 vm_id = 250
tags = ["tofu"] tags = ["tofu"]
started = true started = false
bios = "ovmf" bios = "ovmf"
machine = "q35" machine = "q35"