hashipi

Raspberry Pi Test Cluster for HashiCorp Vault, Nomad and Consul
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | Pull requests |Archive | README

preseed.cfg (3447B)


      1 # Preseeding only locale sets language, country and locale.
      2 d-i debian-installer/locale string en_US
      3 
      4 # Keyboard selection.
      5 d-i console-setup/ask_detect boolean false
      6 d-i keyboard-configuration/xkb-keymap select us
      7 
      8 # Set the network interface
      9 d-i netcfg/choose_interface select enp0s2
     10 
     11 ### Clock and time zone setup
     12 d-i clock-setup/utc boolean true
     13 d-i time/zone string UTC
     14 
     15 # Avoid that last message about the install being complete.
     16 d-i finish-install/reboot_in_progress note
     17 
     18 # This is fairly safe to set, it makes grub install automatically to the MBR
     19 # if no other operating system is detected on the machine.
     20 d-i grub-installer/only_debian boolean true
     21 # To install to the first device (assuming it is not a USB stick):
     22 d-i grub-installer/bootdev string default
     23 
     24 ### Mirror settings
     25 # If you select ftp, the mirror/country string does not need to be set.
     26 #d-i mirror/protocol string ftp
     27 d-i mirror/country string manual
     28 d-i mirror/http/hostname string debian.ethz.ch
     29 d-i mirror/http/directory string /debian
     30 d-i mirror/http/proxy string
     31 
     32 ### Apt setup
     33 # Select which update services to use; define the mirrors to be used.
     34 # Values shown below are the normal defaults.
     35 d-i apt-setup/services-select multiselect security, updates
     36 d-i apt-setup/security_host string security.debian.org
     37 
     38 # Do not prompt for scanning of additional CDs
     39 apt-cdrom-setup	apt-setup/cdrom/set-first boolean false
     40 apt-cdrom-setup	apt-setup/cdrom/set-next boolean false
     41 apt-cdrom-setup	apt-setup/cdrom/set-failed boolean false
     42 apt-cdrom-setup	apt-setup/cdrom/set-double boolean false
     43 
     44 # Don't report statistics
     45 popularity-contest popularity-contest/participate boolean false
     46 
     47 ### Partitioning
     48 d-i partman-auto/method string lvm
     49 
     50 # This makes partman automatically partition without confirmation.
     51 d-i partman-partitioning/confirm_write_new_label boolean true
     52 d-i partman/choose_partition select finish
     53 d-i partman/confirm boolean true
     54 d-i partman/confirm_nooverwrite boolean true
     55 
     56 # Choose atomic partitioning recipes (all files in one partition)
     57 d-i partman-auto/choose_recipe select atomic
     58 # Use max space available for the new LVM volume
     59 d-i partman-auto-lvm/guided_size string max
     60 
     61 # Confirmation to write the lvm partitions
     62 d-i partman-lvm/confirm boolean true
     63 d-i partman-lvm/confirm_nooverwrite boolean true
     64 
     65 # Disable root account
     66 d-i passwd/root-login boolean true
     67 d-i passwd/root-password-crypted password !disabled
     68 d-i passwd/make-user boolean true
     69 
     70 ### Account setup
     71 d-i passwd/username string in0rdr
     72 d-i passwd/user-fullname string in0rdr
     73 d-i passwd/user-uid string 1000
     74 d-i passwd/user-default-groups string sudo
     75 d-i passwd/user-password-crypted password !disabled
     76 #d-i passwd/user-password password pi
     77 #d-i passwd/user-password-again password pi
     78 
     79 # The installer will warn about weak passwords. If you are sure you know
     80 # what you're doing and want to override it, uncomment this.
     81 d-i user-setup/allow-password-weak boolean true
     82 d-i user-setup/encrypt-home boolean false
     83 
     84 ### Package selection
     85 tasksel tasksel/first multiselect standard, ssh-server
     86 d-i pkgsel/include string openssh-server build-essential sudo
     87 d-i pkgsel/upgrade select full-upgrade
     88 
     89 # allow ssh root login
     90 #d-i preseed/late_command string \
     91 #     in-target sed -i 's/^.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
     92 d-i preseed/late_command string \
     93   in-target sh -c 'mkdir -p /home/in0rdr/.ssh'; \
     94   in-target sh -c 'echo $pubkey > /home/in0rdr/.ssh/authorized_keys';