From a76cc6256da0ad86a2efe514ad03c5718681d477 Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Tue, 24 Jun 2025 20:40:27 -0400 Subject: [PATCH] fix(tests): fix `make example` tests (#2007) Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- example/resource_virtual_environment_container.tf | 2 +- example/resource_virtual_environment_download_file.tf | 6 +++--- example/resource_virtual_environment_trunks.tf | 4 +++- example/variables.tf | 8 ++++---- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/example/resource_virtual_environment_container.tf b/example/resource_virtual_environment_container.tf index 705d79e8..d7135beb 100644 --- a/example/resource_virtual_environment_container.tf +++ b/example/resource_virtual_environment_container.tf @@ -42,7 +42,7 @@ resource "proxmox_virtual_environment_container" "example_template" { node_name = data.proxmox_virtual_environment_nodes.example.names[0] operating_system { - template_file_id = proxmox_virtual_environment_download_file.release_20240725_ubuntu_24_noble_lxc_img.id + template_file_id = proxmox_virtual_environment_download_file.release_20250610_ubuntu_24_noble_lxc_img.id type = "ubuntu" } diff --git a/example/resource_virtual_environment_download_file.tf b/example/resource_virtual_environment_download_file.tf index 53bc1ef9..8532d95a 100644 --- a/example/resource_virtual_environment_download_file.tf +++ b/example/resource_virtual_environment_download_file.tf @@ -1,11 +1,11 @@ ## Debian and ubuntu image download -resource "proxmox_virtual_environment_download_file" "release_20240725_ubuntu_24_noble_lxc_img" { +resource "proxmox_virtual_environment_download_file" "release_20250610_ubuntu_24_noble_lxc_img" { content_type = "vztmpl" datastore_id = "local" node_name = "pve" - url = var.release_20240725_ubuntu_24_noble_lxc_img_url - checksum = var.release_20240725_ubuntu_24_noble_lxc_img_checksum + url = var.release_20250610_ubuntu_24_noble_lxc_img_url + checksum = var.release_20250610_ubuntu_24_noble_lxc_img_checksum checksum_algorithm = "sha256" upload_timeout = 4444 overwrite_unmanaged = true diff --git a/example/resource_virtual_environment_trunks.tf b/example/resource_virtual_environment_trunks.tf index 67cb06e0..103b0524 100644 --- a/example/resource_virtual_environment_trunks.tf +++ b/example/resource_virtual_environment_trunks.tf @@ -42,6 +42,8 @@ resource "proxmox_virtual_environment_vm" "trunks-example" { enabled = true } + serial_device {} + boot_order = ["scsi0"] scsi_hardware = "virtio-scsi-pci" @@ -50,4 +52,4 @@ resource "proxmox_virtual_environment_vm" "trunks-example" { bridge = "vmbr0" trunks = "10;20;30" } -} \ No newline at end of file +} diff --git a/example/variables.tf b/example/variables.tf index eb47415c..968bd191 100644 --- a/example/variables.tf +++ b/example/variables.tf @@ -19,14 +19,14 @@ variable "latest_debian_12_bookworm_qcow2_img_url" { default = "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.qcow2" } -variable "release_20240725_ubuntu_24_noble_lxc_img_url" { +variable "release_20250610_ubuntu_24_noble_lxc_img_url" { type = string description = "The URL for the Ubuntu 24.04 LXC image" - default = "https://mirrors.servercentral.com/ubuntu-cloud-images/releases/24.04/release-20240725/ubuntu-24.04-server-cloudimg-amd64-root.tar.xz" + default = "https://mirrors.servercentral.com/ubuntu-cloud-images/releases/24.04/release-20250610/ubuntu-24.04-server-cloudimg-amd64-root.tar.xz" } -variable "release_20240725_ubuntu_24_noble_lxc_img_checksum" { +variable "release_20250610_ubuntu_24_noble_lxc_img_checksum" { type = string description = "The checksum for the Ubuntu 24.04 LXC image" - default = "d767d38cb25b2c25d84edc31a80dd1c29a8c922b74188b0e14768b2b2fb6df8e" + default = "ae1fc4b5f020e6f1f2048beb5a7635f7bce4d72723239b7dea86af062cc1ab79" }