Howdy, folks.
I'm trying to populate my proxmox servers' LXC templates with the bpg/proxmox Terraform provider. Pulling from Debian's site, that would look something like this:
However I would like to pull the images/templates as they would be pulled from the GUI console or the pveam tool. So in this case:
The problem is, for the code, I need the URL and checksum of the Debian 12 standard image. I've looked everywhere in the GUI and in the CLI and I cannot find those values.
Any advice?
I'm trying to populate my proxmox servers' LXC templates with the bpg/proxmox Terraform provider. Pulling from Debian's site, that would look something like this:
Code:
resource "proxmox_virtual_environment_download_file" "debian-12-amd64-lxc" {
content_type = "vztmpl"
datastore_id = "local"
node_name = "<redacted>"
url = "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.tar.xz"
checksum = "336129df1c96765434d7725bc9651ad929c119480d14da14a2c1b892ba31a823700739344656fc42cab12af19ffccb7ed5f98339c58d163ebefa4cf40e70e319"
checksum_algorithm = "sha512"
upload_timeout = 300
}
However I would like to pull the images/templates as they would be pulled from the GUI console or the pveam tool. So in this case:
Code:
$sudo pveam available | grep -e 'debian.*12.*standard'
system debian-12-standard_12.2-1_amd64.tar.zst
The problem is, for the code, I need the URL and checksum of the Debian 12 standard image. I've looked everywhere in the GUI and in the CLI and I cannot find those values.
Any advice?
Last edited: