### --- Locale & Keyboard --- d-i debian-installer/locale string en_US.UTF-8 d-i debian-installer/country string FR d-i debian-installer/language string en d-i localechooser/supported-locales multiselect en_US.UTF-8 d-i keyboard-configuration/xkb-keymap select us ### --- Network --- d-i netcfg/choose_interface select auto d-i netcfg/get_hostname string compute-node d-i netcfg/get_domain string policloud.io d-i netcfg/disable_ipv6 boolean true d-i netcfg/wireless_wep string d-i netcfg/link_wait_timeout string 10 ### --- Mirror --- 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 ### --- Time --- d-i time/zone string Europe/Paris d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true ### --- Accounts --- d-i passwd/root-password-crypted password $6$.gvGPqrKa5NewXQh$DVlcXKmFdalflmdJ4/gFlRAzM0l6Ofnj26x9sVSCeFWoWc3eG5Q54A.YcpwrFMFSRjwPYbgEcg996GuFU8Nyv/ d-i passwd/user-fullname string ops d-i passwd/username string ops d-i passwd/user-password-crypted password $6$.gvGPqrKa5NewXQh$DVlcXKmFdalflmdJ4/gFlRAzM0l6Ofnj26x9sVSCeFWoWc3eG5Q54A.YcpwrFMFSRjwPYbgEcg996GuFU8Nyv/ d-i passwd/user-default-groups string sudo d-i passwd/user-uid string 1001 ### --- Kernel + base --- d-i base-installer/kernel/image string linux-image-amd64 d-i apt-setup/non-free boolean false d-i apt-setup/contrib boolean false ### --- Package selection --- tasksel tasksel/first multiselect standard # d-i pkgsel/include string sudo openssh-server ntp ethtool ipmitool util-linux lvm2 vim htop parted curl git lsscsi net-tools wget lshw mdadm docker.io python3-pip ifenslave d-i pkgsel/upgrade select full-upgrade d-i preseed/late_command string \ echo "[*] Setting up software RAID"; \ in-target apt-get update; \ in-target apt-get install -y --no-install-recommends linux-image-amd64 grub-efi-amd64 mdadm sudo openssh-server curl initramfs-tools; \ echo "[*] Adding ops SSH Key"; \ mkdir -p /target/home/ops/.ssh; \ echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDn5GS/wzYNA2lyinPkYwrFyHDAH33NUJEMjGY+MwXNw ops@policloud.com" >> /target/home/ops/.ssh/authorized_keys; \ echo "[*] Configuring sudo for ops user"; \ echo "ops ALL=(ALL) NOPASSWD:ALL" > /target/etc/sudoers.d/ops; \ chmod 440 /target/etc/sudoers.d/ops; \ echo "[*] Create Hive User"; \ wget -O /target/tmp/setup-user.sh http://controller:8088/files/create-hive-user.sh; \ chmod +x /target/tmp/setup-user.sh; \ chroot /target /tmp/setup-user.sh; \ echo "[*] Updating APT sources"; \ wget -O /target/etc/apt/sources.list http://controller:8088/files/sources.list; \ echo "[*] Installing essential packages"; \ in-target apt-get install -y sudo openssh-server ntp ethtool ipmitool util-linux lvm2 vim htop; \ echo "[*] Installing additional utilities"; \ in-target apt-get install -y parted curl git lsscsi net-tools wget lshw mdadm build-essential; \ echo "[*] Installing Docker"; \ in-target apt-get install -y docker.io; \ echo "[*] Installing Python packages"; \ in-target apt-get install -y python3-pip; \ echo "[*] Installing networking packages"; \ in-target apt-get install -y ifenslave; \ echo "[*] Modify Login Motd"; \ wget -O /target/etc/profile.d/motd.sh http://controller:8088/files/motd.txt; \ echo "[*] Setting up network"; \ mkdir -p /target/etc/network/interfaces.d; \ echo 'bonding' >> /target/etc/modules; \ wget -O /target/etc/network/interfaces http://controller:8088/files/interfaces-cpt-rome; \ echo "[*] Setup complete" ### --- Bootloader --- # Configure both disks for bootloader redundancy d-i grub-installer/bootdev string /dev/md1 d-i grub-installer/force-efi-extra-removable boolean true ### --- Final reboot --- d-i finish-install/reboot_in_progress note