Skip to content

Commit

Permalink
Add mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Jan 16, 2024
1 parent 1659236 commit 030a61a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion netbsd.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ locals {

image = "NetBSD-${var.os_version}-${var.architecture.image}.${local.iso_target_extension}"
vm_name = "netbsd-${var.os_version}-${var.architecture.name}.qcow2"
full_remote_path = "images/${var.os_version}/${local.image}"
}

source "qemu" "qemu" {
Expand Down Expand Up @@ -287,7 +288,14 @@ source "qemu" "qemu" {
iso_target_extension = local.iso_target_extension
iso_target_path = local.iso_target_path
iso_urls = [
"https://cdn.netbsd.org/pub/NetBSD/images/${var.os_version}/${local.image}"
"https://cdn.netbsd.org/pub/NetBSD/${local.full_remote_path}",
"https://ftp.netbsd.org/pub/NetBSD/${local.full_remote_path}",
"https://mirror.planetunix.net/pub/NetBSD/${local.full_remote_path}",
"https://www.nic.funet.fi/pub/NetBSD/${local.full_remote_path}",
"https://www.nic.funet.fi/pub/NetBSD/${local.full_remote_path}",
"https://ftp.uni-erlangen.de/netbsd/${local.full_remote_path}",
"https://ftp.allbsd.org/NetBSD/${local.full_remote_path}",
"https://ftp.kaist.ac.kr/NetBSD/${local.full_remote_path}"
]

http_directory = "."
Expand Down

0 comments on commit 030a61a

Please sign in to comment.