sam 33f9f4daf7 terraform: fmt normalization + deprecated resource rename + commit lockfile
Ran `terraform init && terraform validate && terraform fmt` after
installing terraform 1.9.8 locally (which the initial commit couldn't
do since terraform wasn't on the authoring host).

Changes:
  - fmt: alignment normalization on image.tf, store_vm.tf, bmpgen_vm.tf,
    outputs.tf.
  - proxmox_virtual_environment_download_file -> proxmox_download_file
    (deprecated in bpg/proxmox v0.111.1, removed in v1.0).
  - .terraform.lock.hcl: unignored + committed. Pins bpg/proxmox to
    v0.111.1 and hashicorp/random to v3.9.0 so contributors get the same
    provider set on `terraform init`.

`terraform validate` is now Success, no warnings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-20 18:33:39 -07:00

16 lines
634 B
HCL

# 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
}