hashipi

Raspberry Pi home lab with Nomad and OpenBao
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | Pull requests |Archive | README

preseed.cfg (4660B)


      1 # https://www.debian.org/releases/stable/example-preseed.txt
      2 
      3 # Preseeding only locale sets language, country and locale.
      4 d-i debian-installer/locale string en_US
      5 
      6 # Keyboard selection.
      7 d-i console-setup/ask_detect boolean false
      8 d-i keyboard-configuration/xkb-keymap select us
      9 
     10 # Set the network interface
     11 #d-i netcfg/choose_interface select auto
     12 d-i netcfg/choose_interface select eth0
     13 
     14 # https://unix.stackexchange.com/a/209522
     15 # https://sources.debian.org/src/netcfg/1.131/debian/netcfg-common.templates
     16 netcfg/target_network_config select ifupdown
     17 
     18 ### Clock and time zone setup
     19 d-i clock-setup/utc boolean true
     20 d-i time/zone string UTC
     21 
     22 # Avoid that last message about the install being complete.
     23 d-i finish-install/reboot_in_progress note
     24 
     25 # This is fairly safe to set, it makes grub install automatically to the MBR
     26 # if no other operating system is detected on the machine.
     27 d-i grub-installer/only_debian boolean true
     28 # To install to the first device (assuming it is not a USB stick):
     29 d-i grub-installer/bootdev string default
     30 
     31 ### Mirror settings
     32 # If you select ftp, the mirror/country string does not need to be set.
     33 #d-i mirror/protocol string ftp
     34 d-i mirror/country string manual
     35 d-i mirror/http/hostname string debian.ethz.ch
     36 d-i mirror/http/directory string /debian
     37 d-i mirror/http/proxy string
     38 
     39 ### Apt setup
     40 # Select which update services to use; define the mirrors to be used.
     41 # Values shown below are the normal defaults.
     42 d-i apt-setup/services-select multiselect security, updates
     43 d-i apt-setup/security_host string security.debian.org
     44 
     45 # Do not prompt for scanning of additional CDs
     46 apt-cdrom-setup	apt-setup/cdrom/set-first boolean false
     47 apt-cdrom-setup	apt-setup/cdrom/set-next boolean false
     48 apt-cdrom-setup	apt-setup/cdrom/set-failed boolean false
     49 apt-cdrom-setup	apt-setup/cdrom/set-double boolean false
     50 
     51 # Don't report statistics
     52 popularity-contest popularity-contest/participate boolean false
     53 
     54 ### Partitioning
     55 d-i partman-auto/method string regular
     56 
     57 # This makes partman automatically partition without confirmation.
     58 d-i partman-partitioning/confirm_write_new_label boolean true
     59 d-i partman/choose_partition select finish
     60 d-i partman/confirm boolean true
     61 d-i partman/confirm_nooverwrite boolean true
     62 
     63 # Choose atomic partitioning recipes (all files in one partition)
     64 d-i partman-auto/choose_recipe select atomic
     65 # Use max space available for the new LVM volume
     66 #d-i partman-auto-lvm/guided_size string max
     67 
     68 # Confirmation to write the lvm partitions
     69 #d-i partman-lvm/confirm boolean true
     70 #d-i partman-lvm/confirm_nooverwrite boolean true
     71 
     72 # For new users, personal Debian boxes, home systems, and other single-user
     73 # setups, a single / partition (plus swap) is probably the easiest, simplest
     74 # way to go. The recommended partition type is ext4.
     75 # https://www.debian.org/releases/stable/amd64/apcs03.en.html
     76 d-i partman-auto/expert_recipe string                         \
     77       root ::                                                 \
     78               8000 8000 8000 ext4                             \
     79                       $primary{ } method{ format } format{ }  \
     80                       use_filesystem{ } filesystem{ ext4 }    \
     81                       mountpoint{ / } .
     82 
     83 # Continue w/o swap (don't go back)
     84 d-i partman-basicfilesystems/no_swap boolean false
     85 
     86 # Create root account for bootstrap scripts
     87 d-i passwd/root-login boolean true
     88 # disable root password login
     89 d-i passwd/root-password-crypted password !disabled
     90 #d-i passwd/root-password password r00t
     91 #d-i passwd/root-password-again password r00t
     92 
     93 ### Account setup
     94 d-i passwd/make-user boolean true
     95 d-i passwd/username string in0rdr
     96 d-i passwd/user-fullname string in0rdr
     97 d-i passwd/user-uid string 1000
     98 d-i passwd/user-default-groups string sudo
     99 # disable user password login
    100 d-i passwd/user-password-crypted password !disabled
    101 
    102 # The installer will warn about weak passwords. If you are sure you know
    103 # what you're doing and want to override it, uncomment this.
    104 d-i user-setup/allow-password-weak boolean true
    105 d-i user-setup/encrypt-home boolean false
    106 
    107 ### Package selection
    108 tasksel tasksel/first multiselect standard, ssh-server
    109 d-i pkgsel/include string cloud-initramfs-growroot openssh-server \
    110   build-essential sudo gnupg2 unzip vim git lxc bridge-utils mdadm collectd
    111 d-i pkgsel/upgrade select full-upgrade
    112 
    113 # Temporarily allow ssh root login for packer builder
    114 d-i preseed/late_command string \
    115   in-target sed -i 's/^.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
    116 
    117 # Configure ssh pubkeys for packer builder
    118 d-i preseed/late_command string \
    119   in-target sh -c 'mkdir -p /root/.ssh'; \
    120   in-target sh -c 'echo $pubkey > /root/.ssh/authorized_keys';