Skip to content

Commit 4a61e6e

Browse files
committed
misc: use ubuntu minimal cloud image in tests
Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com>
1 parent 702500c commit 4a61e6e

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

examples/guides/clone-vm/template.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image" {
5252
datastore_id = "local"
5353
node_name = var.virtual_environment_node_name
5454

55-
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
55+
url = "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
5656
}

examples/guides/cloud-image/ubuntu-img/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image" {
2727
content_type = "import"
2828
datastore_id = "local"
2929
node_name = "pve"
30-
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
30+
url = "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
3131
# need to rename the file to *.qcow2 to indicate the actual file format for import
3232
file_name = "jammy-server-cloudimg-amd64.qcow2"
3333
}

examples/guides/cloud-init/custom/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image" {
4646
content_type = "import"
4747
datastore_id = "local"
4848
node_name = "pve"
49-
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
49+
url = "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
5050
# need to rename the file to *.qcow2 to indicate the actual file format for import
5151
file_name = "jammy-server-cloudimg-amd64.qcow2"
5252
}

examples/guides/cloud-init/native/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "proxmox_virtual_environment_download_file" "ubuntu_cloud_image" {
4444
content_type = "import"
4545
datastore_id = "local"
4646
node_name = "pve"
47-
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
47+
url = "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
4848
# need to rename the file to *.qcow2 to indicate the actual file format for import
4949
file_name = "jammy-server-cloudimg-amd64.qcow2"
5050
}

examples/resources/proxmox_virtual_environment_download_file/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ resource "proxmox_virtual_environment_download_file" "latest_ubuntu_22_jammy_qco
3838
content_type = "iso"
3939
datastore_id = "local"
4040
node_name = "pve"
41-
url = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
41+
url = "https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
4242
}
4343

4444
resource "proxmox_virtual_environment_download_file" "latest_static_ubuntu_24_noble_qcow2_img" {

fwprovider/test/resource_vm_disks_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func TestAccResourceVMDisks(t *testing.T) {
110110
content_type = "iso"
111111
datastore_id = "local"
112112
node_name = "{{.NodeName}}"
113-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
113+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
114114
overwrite_unmanaged = true
115115
}
116116
resource "proxmox_virtual_environment_vm" "test_disk" {
@@ -148,7 +148,7 @@ func TestAccResourceVMDisks(t *testing.T) {
148148
content_type = "import"
149149
datastore_id = "local"
150150
node_name = "{{.NodeName}}"
151-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
151+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
152152
file_name = "test-disk-image.img.raw"
153153
overwrite_unmanaged = true
154154
}
@@ -1113,7 +1113,7 @@ func TestAccResourceVMDisks(t *testing.T) {
11131113
content_type = "import"
11141114
datastore_id = "local"
11151115
node_name = "{{.NodeName}}"
1116-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
1116+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
11171117
file_name = "test-bootdisk-bug-image.img.raw"
11181118
overwrite_unmanaged = true
11191119
}
@@ -1148,7 +1148,7 @@ func TestAccResourceVMDisks(t *testing.T) {
11481148
content_type = "import"
11491149
datastore_id = "local"
11501150
node_name = "{{.NodeName}}"
1151-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
1151+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
11521152
file_name = "test-bootdisk-bug-image.img.raw"
11531153
overwrite_unmanaged = true
11541154
}
@@ -1188,7 +1188,7 @@ func TestAccResourceVMDisks(t *testing.T) {
11881188
content_type = "import"
11891189
datastore_id = "local"
11901190
node_name = "{{.NodeName}}"
1191-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
1191+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
11921192
file_name = "test-boot-resize-image.img.raw"
11931193
overwrite_unmanaged = true
11941194
}
@@ -1216,7 +1216,7 @@ func TestAccResourceVMDisks(t *testing.T) {
12161216
content_type = "import"
12171217
datastore_id = "local"
12181218
node_name = "{{.NodeName}}"
1219-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
1219+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
12201220
file_name = "test-boot-resize-image.img.raw"
12211221
overwrite_unmanaged = true
12221222
}

fwprovider/test/resource_vm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ func TestAccResourceVMInitialization(t *testing.T) {
526526
content_type = "iso"
527527
datastore_id = "local"
528528
node_name = "{{.NodeName}}"
529-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
529+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
530530
overwrite_unmanaged = true
531531
}`),
532532
}}},
@@ -691,7 +691,7 @@ func TestAccResourceVMNetwork(t *testing.T) {
691691
content_type = "iso"
692692
datastore_id = "local"
693693
node_name = "{{.NodeName}}"
694-
url = "{{.CloudImagesServer}}/jammy/current/jammy-server-cloudimg-amd64.img"
694+
url = "{{.CloudImagesServer}}/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img"
695695
overwrite_unmanaged = true
696696
}`),
697697
Check: resource.ComposeTestCheckFunc(

0 commit comments

Comments
 (0)