Skip to content

Instantly share code, notes, and snippets.

@rjsalts
Last active September 22, 2016 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjsalts/87dbebfb6bd32a7b041c to your computer and use it in GitHub Desktop.
Save rjsalts/87dbebfb6bd32a7b041c to your computer and use it in GitHub Desktop.
# Locale, country and keyboard settings
d-i debian-installer/locale string en_US
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 foo
d-i netcfg/get_domain string example.org
d-i netcfg/wireless_wep string
d-i hw-detect/load_firmware boolean true
# Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.us.debian.org
d-i mirror/http/directory string /debian/
d-i mirror/http/proxy string
d-i mirror/codename string jessie
d-i mirror/suite string jessie
d-i mirror/udeb/suite string jessie
# 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 0.debian.pool.ntp.org
# Set alignment for automatic partitioning
# Choices: cylinder, minimal, optimal
#d-i partman/alignment select cylinder
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/init_automatically_partition \\
select Guided - use entire disk and set up LVM
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/expert_recipe string \\
boot-root :: \\
1 1 1 free \\
$iflabel{ gpt } \\
$reusemethod{ } \\
method{ biosgrub } . \\
128 512 256 ext2 \\
$primary{ } $bootable{ } \\
method{ format } format{ } \\
use_filesystem{ } filesystem{ ext2 } \\
mountpoint{ /boot } \\
. \\
128 512 1024 linux-swap \\
method{ swap } format{ } $lvmok{ } \\
. \\
1024 512 10240 $default_filesystem \\
method{ format } format{ } $lvmok{ } \\
use_filesystem{ } filesystem{ ext4 } \\
mountpoint{ / } \\
.
d-i partman/default_filesystem string ext4
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
# Install different kernel
#d-i base-installer/kernel/image string linux-server
# User settings
d-i passwd/root-password-crypted password stuff
user-setup-udeb passwd/root-login boolean true
d-i passwd passwd/make-user boolean false
user-setup-udeb passwd/make-user boolean false
# Puppetlabs products
d-i apt-setup/local0/repository string \
http://apt.puppetlabs.com trusty main
d-i apt-setup/local0/comment string Puppetlabs products
d-i apt-setup/local0/source boolean true
d-i apt-setup/local0/key string http://apt.puppetlabs.com/pubkey.gpg
# Puppetlabs dependencies
d-i apt-setup/local1/repository string \
http://apt.puppetlabs.com trusty dependencies
d-i apt-setup/local1/comment string Puppetlabs dependencies
d-i apt-setup/local1/source boolean true
d-i apt-setup/local1/key string http://apt.puppetlabs.com/pubkey.gpg
# 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 http://puppet/unattended/finish?token=stuff -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