Skip to content

Commit 84bbece

Browse files
Add mirrors
1 parent 86e42b5 commit 84bbece

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

netbsd.pkr.hcl

+9-1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ locals {
141141

142142
image = "NetBSD-${var.os_version}-${var.architecture.image}.${local.iso_target_extension}"
143143
vm_name = "netbsd-${var.os_version}-${var.architecture.name}.qcow2"
144+
full_remote_path = "images/${var.os_version}/${local.image}"
144145
}
145146

146147
source "qemu" "qemu" {
@@ -287,7 +288,14 @@ source "qemu" "qemu" {
287288
iso_target_extension = local.iso_target_extension
288289
iso_target_path = local.iso_target_path
289290
iso_urls = [
290-
"https://cdn.netbsd.org/pub/NetBSD/images/${var.os_version}/${local.image}"
291+
"https://cdn.netbsd.org/pub/NetBSD/${local.full_remote_path}",
292+
"https://ftp.netbsd.org/pub/NetBSD/${local.full_remote_path}",
293+
"https://mirror.planetunix.net/pub/NetBSD/${local.full_remote_path}",
294+
"https://www.nic.funet.fi/pub/NetBSD/${local.full_remote_path}",
295+
"https://www.nic.funet.fi/pub/NetBSD/${local.full_remote_path}",
296+
"https://ftp.uni-erlangen.de/netbsd/${local.full_remote_path}",
297+
"https://ftp.allbsd.org/NetBSD/${local.full_remote_path}",
298+
"https://ftp.kaist.ac.kr/NetBSD/${local.full_remote_path}"
291299
]
292300

293301
http_directory = "."

0 commit comments

Comments
 (0)