Skip to content

Commit

Permalink
fix: add default checksum for centos9-stream (#254)
Browse files Browse the repository at this point in the history
- Add the default checksum URL
- Fix the `iso_checksum` assignment from the variable

Resolves GH: #253
  • Loading branch information
skatsaounis authored Aug 2, 2024
1 parent 15b649d commit 87b8096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centos9-stream/centos9-stream.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variable "centos9_stream_iso_url" {

variable "centos9_stream_sha256sum_url" {
type = string
default = "none"
default = "https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso.SHA256SUM"
}

# use can use "--url" to specify the exact url for os repo
Expand Down Expand Up @@ -78,7 +78,7 @@ source "qemu" "centos9-stream" {
communicator = "none"
disk_size = "4G"
headless = true
iso_checksum = var.centos9_stream_sha256sum_url
iso_checksum = "file:${var.centos9_stream_sha256sum_url}"
iso_url = var.centos9_stream_iso_url
memory = 2048
qemuargs = [["-serial", "stdio"], ["-cpu", "host"]]
Expand Down

0 comments on commit 87b8096

Please sign in to comment.