# Localization d-i debian-installer/country string FR d-i keyboard-configuration/xkb-keymap select us # Network configuration d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string compute-node d-i netcfg/get_domain string local d-i netcfg/wireless_wep string # Mirror settings d-i mirror/country string manual d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string # Account setup - CHANGE THESE PASSWORDS FOR PRODUCTION d-i passwd/root-password password r00tpassword d-i passwd/root-password-again password r00tpassword d-i passwd/user-fullname string Debian User d-i passwd/username string user d-i passwd/user-password password userpassword d-i passwd/user-password-again password userpassword d-i user-setup/allow-password-weak boolean true # Clock and time zone setup d-i clock-setup/utc boolean true d-i time/zone string UTC d-i clock-setup/ntp boolean true # Partitioning - Advanced LVM scheme for storage nodes 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 # Define a custom partitioning recipe for storage nodes d-i partman-auto/expert_recipe string \ storage :: \ 512 512 512 ext4 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 2048 2048 2048 linux-swap \ $lvmok{ } lv_name{ swap } \ method{ swap } format{ } \ . \ 5120 5120 5120 ext4 \ $lvmok{ } lv_name{ root } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ . \ 10240 10240 -1 ext4 \ $lvmok{ } lv_name{ data } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /data } \ . # Use entire disk d-i partman-auto/choose_recipe select storage 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 # Base system installation d-i base-installer/kernel/image string linux-image-amd64 # Package selection tasksel tasksel/first multiselect standard d-i pkgsel/include string openssh-server vim lvm2 mdadm xfsprogs btrfs-progs htop iotop iftop net-tools dstat sysstat nmon ntp # Software configuration popularity-contest popularity-contest/participate boolean false # Boot loader installation d-i grub-installer/only_debian boolean true d-i grub-installer/bootdev string default # Finish installation d-i finish-install/reboot_in_progress note # Post-installation commands d-i preseed/late_command string \ in-target apt-get update; \ in-target apt-get -y upgrade; \ in-target systemctl enable ssh; \ in-target mkdir -p /data/storage