16 lines
634 B
Terraform
Raw Permalink Normal View History

# One-time Ubuntu cloud image download. bpg/proxmox handles the "did I
# already download this?" check by URL + storage; safe to re-run.
resource "proxmox_download_file" "ubuntu_noble" {
content_type = "iso"
datastore_id = var.image_storage
node_name = var.pve_node
url = var.ubuntu_image_url
file_name = "noble-server-cloudimg-amd64.img"
checksum = var.ubuntu_image_checksum != "" ? var.ubuntu_image_checksum : null
checksum_algorithm = var.ubuntu_image_checksum != "" ? "sha256" : null
overwrite = false
overwrite_unmanaged = false
upload_timeout = 900
}