Skip to content

Commit 3094137

Browse files
authored
fix metadata basename (#1548)
fixed metadata base_boxname updated debian 11 to 11.9 updated debian 12 to 12.5
1 parent 7bbfea4 commit 3094137

23 files changed

+784
-44
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ Markdown table generated at <https://www.tablesgenerator.com/markdown_tables#>
5454
- Create CD pipeline to build and upload new versions of vagrant boxes once every 3 months with the latest patches
5555
- Added ability to configure bento upload of private or public boxes in builds.yml, defaults to private
5656

57-
## [unreleased] (2024-02-05)
57+
## [unreleased] (2024-02-16)
58+
59+
## [v4.0.1] (2024-02-16)
60+
61+
- Fix metadata file box_basename
62+
- Updated Debian 11 to 11.9
63+
- Updated Debian 12 to 12.5
64+
- Added Windows 11 aarch64 template
5865

5966
## [v4.0.0] (2024-02-05)
6067

lib/bento/buildmetadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def read
3333
attr_reader :template, :build_timestamp, :override_version, :pkr_cmd
3434

3535
def box_basename
36-
name.gsub('/', '__').split('-')[0...-1].join('-')
36+
name.gsub('/', '__').split('-').join('-')
3737
end
3838

3939
def git_revision

os_pkrvars/debian/debian-11-aarch64.pkrvars.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
os_name = "debian"
2-
os_version = "11.8"
2+
os_version = "11.9"
33
os_arch = "aarch64"
4-
iso_url = "https://cdimage.debian.org/cdimage/archive/latest-oldstable/arm64/iso-dvd/debian-11.8.0-arm64-DVD-1.iso"
4+
iso_url = "https://cdimage.debian.org/cdimage/archive/latest-oldstable/arm64/iso-dvd/debian-11.9.0-arm64-DVD-1.iso"
55
iso_checksum = "file:https://cdimage.debian.org/cdimage/archive/latest-oldstable/arm64/iso-dvd/SHA256SUMS"
66
parallels_guest_os_type = "debian"
77
vbox_guest_os_type = "Debian_64"

os_pkrvars/debian/debian-11-x86_64.pkrvars.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
os_name = "debian"
2-
os_version = "11.8"
2+
os_version = "11.9"
33
os_arch = "x86_64"
4-
iso_url = "https://cdimage.debian.org/cdimage/archive/latest-oldstable/amd64/iso-dvd/debian-11.8.0-amd64-DVD-1.iso"
4+
iso_url = "https://cdimage.debian.org/cdimage/archive/latest-oldstable/amd64/iso-dvd/debian-11.9.0-amd64-DVD-1.iso"
55
iso_checksum = "file:https://cdimage.debian.org/cdimage/archive/latest-oldstable/amd64/iso-dvd/SHA256SUMS"
66
parallels_guest_os_type = "debian"
77
vbox_guest_os_type = "Debian_64"

os_pkrvars/debian/debian-12-aarch64.pkrvars.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
os_name = "debian"
2-
os_version = "12.4"
2+
os_version = "12.5"
33
os_arch = "aarch64"
4-
iso_url = "https://cdimage.debian.org/cdimage/release/12.4.0/arm64/iso-dvd/debian-12.4.0-arm64-DVD-1.iso"
5-
iso_checksum = "file:https://cdimage.debian.org/cdimage/release/12.4.0/arm64/iso-dvd/SHA256SUMS"
4+
iso_url = "https://cdimage.debian.org/cdimage/release/12.5.0/arm64/iso-dvd/debian-12.5.0-arm64-DVD-1.iso"
5+
iso_checksum = "file:https://cdimage.debian.org/cdimage/release/12.5.0/arm64/iso-dvd/SHA256SUMS"
66
parallels_guest_os_type = "debian"
77
vbox_guest_os_type = "Debian_64"
88
vmware_guest_os_type = "arm-debian-64"

os_pkrvars/debian/debian-12-x86_64.pkrvars.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
os_name = "debian"
2-
os_version = "12.4"
2+
os_version = "12.5"
33
os_arch = "x86_64"
4-
iso_url = "https://cdimage.debian.org/cdimage/release/12.4.0/amd64/iso-dvd/debian-12.4.0-amd64-DVD-1.iso"
5-
iso_checksum = "file:https://cdimage.debian.org/cdimage/release/12.4.0/amd64/iso-dvd/SHA256SUMS"
4+
iso_url = "https://cdimage.debian.org/cdimage/release/12.5.0/amd64/iso-dvd/debian-12.5.0-amd64-DVD-1.iso"
5+
iso_checksum = "file:https://cdimage.debian.org/cdimage/release/12.5.0/amd64/iso-dvd/SHA256SUMS"
66
parallels_guest_os_type = "debian"
77
vbox_guest_os_type = "Debian_64"
88
vmware_guest_os_type = "debian-64"

os_pkrvars/windows/windows-10-x86_64.pkrvars.hcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ iso_checksum = "ef7312733a9f5d7d51cfa04ac497671995674ca5e1058d5164d60
77
parallels_guest_os_type = "win-10"
88
vbox_guest_os_type = "Windows10_64"
99
vmware_guest_os_type = "windows9srv-64"
10-
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
os_name = "windows"
2+
os_version = "11"
3+
os_arch = "aarch64"
4+
is_windows = true
5+
iso_url = "../../builds/iso/WIN11_PROFESSIONAL_ARM64_EN-US.ISO"
6+
iso_checksum = "90d4f9b5377e3c41784696ad0bb021b690e4f981f8e278fad62e07726f86bd77"
7+
parallels_guest_os_type = "win-11"
8+
vbox_guest_os_type = "Windows11_64"
9+
vmware_guest_os_type = "windows9srv-64"

packer_templates/http/ubuntu/user-data

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ autoinstall:
1313
install-server: yes
1414
allow-pw: yes
1515
late-commands:
16+
- sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf
17+
- 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'
1618
- echo 'vagrant ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/vagrant
1719
# Enable hyper-v daemons only if using hyper-v virtualization
1820
- if [ $(virt-what) == "hyperv" ]; then apt-get update && apt-get install -y hyperv-daemons linux-tools-$(uname -r) linux-cloud-tools-$(uname -r) linux-cloud-tools-common cifs-utils && systemctl enable hypervvssd && systemctl enable hypervkvpd && systemctl start hypervvssd && systemctl start hypervkvpd; fi

packer_templates/pkr-builder.pkr.hcl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ locals {
117117
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "amazonlinux-2" ||
118118
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "centos-7" ||
119119
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "oracle-7" ||
120-
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "rhel-7" ||
121-
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "scientificlinux-7" ||
122-
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "springdalelinux-7" ? [
120+
"${var.os_name}-${substr(var.os_version, 0, 1)}" == "rhel-7" ? [
123121
"${path.root}/scripts/rhel/update_yum.sh",
124122
"${path.root}/scripts/_common/motd.sh",
125123
"${path.root}/scripts/_common/sshd.sh",

0 commit comments

Comments
 (0)