Skip to content

Instantly share code, notes, and snippets.

@GregSutcliffe
Created May 21, 2012 16:25
Show Gist options
  • Save GregSutcliffe/2763134 to your computer and use it in GitHub Desktop.
Save GregSutcliffe/2763134 to your computer and use it in GitHub Desktop.
PXE: (note language and keymap settings)
default linux
label linux
kernel <%= @kernel %>
append initrd=<%= @initrd %> interface=auto url=<%= foreman_url("provision")%> ramdisk_size=10800 root=/dev/rd/0 rw auto=true priority=critical hostname=unassigned-hostname DEBCONF_DEBUG=5 language=en locale=en_GB.UTF-8 console-keymaps-at/keymap=gb debian-installer/country=GB
Preseed:
# Locale, country and keyboard settings
d-i console-setup/ask_detect boolean false
d-i console-setup/modelcode string pc105
d-i console-setup/variant USA
d-i console-setup/layout USA
d-i console-setup/layoutcode string us
# Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string <%= @host.name %>
d-i netcfg/get_domain string <%= @host.domain.name %>
d-i netcfg/wireless_wep string
d-i hw-detect/load_firmware boolean true
# Mirror settings
d-i mirror/country string GB
d-i mirror/http/hostname string <%= @preseed_server %>
d-i mirror/http/directory string <%= @preseed_path %>
d-i mirror/http/proxy string http://foreman:3142/
d-i mirror/codename string <%= @host.operatingsystem.release_name %>
d-i mirror/suite string <%= @host.operatingsystem.release_name %>
d-i mirror/udeb/suite string <%= @host.operatingsystem.release_name %>
# Time settings
d-i clock-setup/utc boolean true
d-i time/zone string UTC
# NTP
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp
# Set alignment for automatic partitioning
# Choices: cylinder, minimal, optimal
#d-i partman/alignment select cylinder
<%= @host.diskLayout %>
# Install different kernel
#d-i base-installer/kernel/image string linux-server
# User settings
d-i passwd/root-password-crypted password <%= root_pass %>
user-setup-udeb passwd/root-login boolean true
d-i passwd passwd/make-user boolean false
user-setup-udeb passwd/make-user boolean false
# Install minimal task set (see tasksel --task-packages minimal)
tasksel tasksel/first multiselect minimal
# Install some base packages
d-i pkgsel/include string puppet lsb-release openssh-server
d-i pkgsel/update-policy select unattended-upgrades
popularity-contest popularity-contest/participate boolean false
# Boot loader settings
#grub-pc grub-pc/hidden_timeout boolean false
#grub-pc grub-pc/timeout string 10
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string wget <%= foreman_url("finish") %> -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment