Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions packer/http/autoinstall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#cloud-config
autoinstall:
version: 1
interactive-sections: []
locale: 'en_US.UTF-8'
refresh-installer:
update: true
keyboard:
layout: us
apt:
mirror-selection:
primary:
- arches: [i386, amd64]
uri: 'http://mirror.cs.jmu.edu/pub/ubuntu'
- arches: [arm64]
uri: 'http://ports.ubuntu.com/ubuntu-ports'
fallback: abort
packages:
- oem-config
storage:
layout:
name: direct
identity:
hostname: jmucs
realname: 'OEM User'
username: oem
password: $1$.WsfKhkz$G/3ZFe1ZGQrJJJ7GoJ.vY.
ssh:
install-server: true
codecs:
install: true
oem:
install: true
updates: all
shutdown: reboot
85 changes: 0 additions & 85 deletions packer/http/oem-preseed.cfg

This file was deleted.

15 changes: 3 additions & 12 deletions packer/main.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,10 @@ source "virtualbox-iso" "base-build" {
"c<wait><wait>",
# Configure the kernel
"linux /casper/vmlinuz",
" boot=casper",
" auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oem-preseed.cfg",
" automatic-ubiquity only-ubiquity",
" debug-ubiquity oem-config/enable=true",
" keymap=us fsck.mode=skip",
" noprompt splash --<enter><wait><wait>",
# Configure initrd & boot
# Different distributions name (and compress) the initrd differently. Fortunately,
# GRUB is mostly smart and if the file doesn't exist, it just won't apply that directive.
# So to prevent duplication, we specify both and let GRUB ignore the wrong one.
" autoinstall cloud-config-url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/autoinstall.yaml",
" --<enter>",
"initrd /casper/initrd<enter>",
"initrd /casper/initrd.lz<enter><wait>",
"<enter>boot<enter>"
"<wait><enter>boot<enter>"
]
shutdown_command = "echo -e \"${var.ssh_pass}\\n\" | sudo -S poweroff"

Expand Down
4 changes: 2 additions & 2 deletions packer/ubuntu-version.auto.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ubuntu_version = {
version = "jammy"
patched_version = "22.04.4"
version = "noble"
patched_version = "24.04"
}