|
|
@@ -0,0 +1,168 @@ |
|
|
|
#### Contents of the preconfiguration file (for jessie) |
|
|
|
### Localization |
|
|
|
# Locale |
|
|
|
d-i debian-installer/language string de |
|
|
|
d-i debian-installer/country string DE |
|
|
|
d-i debian-installer/locale string de_DE.UTF-8 |
|
|
|
|
|
|
|
# Keyboard selection. |
|
|
|
d-i keyboard-configuration/xkb-keymap select de |
|
|
|
d-i keyboard-configuration/toggle select No toggling |
|
|
|
|
|
|
|
### Network configuration |
|
|
|
{% if (networks is defined) and (netname is defined) and (networks[netname] is defined) %} |
|
|
|
d-i netcfg/choose_interface select {{ networks[netname].mac | default("auto") }} |
|
|
|
|
|
|
|
{% if (networks[netname].type is defined) and (networks[netname].type == 'static') %} |
|
|
|
d-i netcfg/disable_autoconfig boolean true |
|
|
|
d-i netcfg/get_ipaddress string {{ networks[netname].ip | ipaddr('address') }} |
|
|
|
d-i netcfg/get_netmask string {{ networks[netname].ip | ipaddr('netmask') }} |
|
|
|
d-i netcfg/get_gateway string {{ networks[netname].gateway }} |
|
|
|
d-i netcfg/get_nameservers string {{ networks[netname].nameservers | join(" ") }} |
|
|
|
d-i netcfg/confirm_static boolean true |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
### Network console |
|
|
|
{% if network_console is defined %} |
|
|
|
d-i anna/choose_modules string network-console |
|
|
|
d-i network-console/password-disabled boolean true |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
### Hostname |
|
|
|
d-i netcfg/hostname string {{inventory_hostname}} |
|
|
|
|
|
|
|
### Mirror settings |
|
|
|
d-i mirror/country string manual |
|
|
|
d-i mirror/http/hostname string debian.thengo.net |
|
|
|
d-i mirror/http/directory string /debian |
|
|
|
d-i mirror/http/proxy string |
|
|
|
|
|
|
|
### Account setup |
|
|
|
# Skip creation of a root account (normal user account will be able to |
|
|
|
# use sudo). |
|
|
|
d-i passwd/root-login boolean true |
|
|
|
# Alternatively, to skip creation of a normal user account. |
|
|
|
d-i passwd/make-user boolean true |
|
|
|
|
|
|
|
# Root password |
|
|
|
d-i passwd/root-password-crypted password {{ passwords_hashed["root"] }} |
|
|
|
|
|
|
|
# local-admin |
|
|
|
d-i passwd/user-fullname string Administrator |
|
|
|
d-i passwd/username string local-admin |
|
|
|
d-i passwd/user-password-crypted password {{ passwords_hashed["local-admin"] }} |
|
|
|
d-i passwd/user-uid string 999 |
|
|
|
|
|
|
|
### Clock and time zone setup |
|
|
|
d-i clock-setup/utc boolean true |
|
|
|
d-i time/zone string Etc/UTC |
|
|
|
d-i clock-setup/ntp boolean true |
|
|
|
d-i clock-setup/ntp-server string ntp1.thengo.net ntp2.thengo.net ntp3.thengo.net |
|
|
|
|
|
|
|
### Partitioning |
|
|
|
{% if partitioning is defined %} |
|
|
|
## Partitioning example |
|
|
|
# If the system has free space you can choose to only partition that space. |
|
|
|
# This is only honoured if partman-auto/method (below) is not set. |
|
|
|
#d-i partman-auto/init_automatically_partition select biggest_free |
|
|
|
|
|
|
|
# You can choose one of the three predefined partitioning recipes: |
|
|
|
# - atomic: all files in one partition |
|
|
|
# - home: separate /home partition |
|
|
|
# - multi: separate /home, /var, and /tmp partitions |
|
|
|
d-i partman-auto/choose_recipe select atomic |
|
|
|
|
|
|
|
## Controlling how partitions are mounted |
|
|
|
# The default is to mount by UUID, but you can also choose "traditional" to |
|
|
|
# use traditional device names, or "label" to try filesystem labels before |
|
|
|
# falling back to UUIDs. |
|
|
|
d-i partman/mount_style select uuid |
|
|
|
|
|
|
|
d-i partman/default_filesystem string btrfs |
|
|
|
|
|
|
|
#d-i partman-auto/disk string /dev/sda |
|
|
|
|
|
|
|
d-i partman-auto/method string regular |
|
|
|
|
|
|
|
# partitioning |
|
|
|
d-i partman-basicfilesystems/choose_label string gpt |
|
|
|
d-i partman-basicfilesystems/default_label string gpt |
|
|
|
d-i partman-partitioning/choose_label string gpt |
|
|
|
d-i partman-partitioning/default_label string gpt |
|
|
|
d-i partman/choose_label string gpt |
|
|
|
d-i partman/default_label string gpt |
|
|
|
d-i partman-partitioning/choose_label select gpt |
|
|
|
|
|
|
|
partman-base partman/default_filesystem string btrfs |
|
|
|
|
|
|
|
d-i partman-auto/choose_recipe atomic |
|
|
|
|
|
|
|
# This makes partman automatically partition without confirmation. |
|
|
|
d-i partman-md/confirm boolean true |
|
|
|
d-i partman-md/confirm_nooverwrite boolean true |
|
|
|
d-i partman/choose_partition select finish |
|
|
|
d-i partman/confirm boolean true |
|
|
|
d-i partman/confirm_nooverwrite boolean true |
|
|
|
|
|
|
|
# If one of the disks that are going to be automatically partitioned |
|
|
|
# contains an old LVM configuration, the user will normally receive a |
|
|
|
# warning. This can be preseeded away... |
|
|
|
d-i partman-lvm/device_remove_lvm boolean true |
|
|
|
# The same applies to pre-existing software RAID array: |
|
|
|
d-i partman-md/device_remove_md boolean true |
|
|
|
# And the same goes for the confirmation to write the lvm partitions. |
|
|
|
d-i partman-lvm/confirm boolean true |
|
|
|
d-i partman-lvm/confirm_nooverwrite boolean true |
|
|
|
|
|
|
|
# do not complain about missing swap partition |
|
|
|
#d-i partman-basicfilesystems/no_swap boolean false |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
### Apt setup |
|
|
|
# You can choose to install non-free and contrib software. |
|
|
|
d-i apt-setup/non-free boolean {{ nonfree_firmware }} |
|
|
|
d-i apt-setup/contrib boolean {{ nonfree_firmware }} |
|
|
|
d-i apt-setup/services-select multiselect security,updates |
|
|
|
d-i apt-setup/security_host string security.debian.org |
|
|
|
|
|
|
|
### Package selection |
|
|
|
tasksel tasksel/first multiselect minimal |
|
|
|
|
|
|
|
# Individual additional packages to install |
|
|
|
d-i pkgsel/include string openssh-server python python-apt |
|
|
|
|
|
|
|
# Whether to upgrade packages after debootstrap. |
|
|
|
# Allowed values: none, safe-upgrade, full-upgrade |
|
|
|
d-i pkgsel/upgrade select full-upgrade |
|
|
|
|
|
|
|
# Some versions of the installer can report back on what software you have |
|
|
|
# installed, and what software you use. The default is not to report back, |
|
|
|
# but sending reports helps the project determine what software is most |
|
|
|
# popular and include it on CDs. |
|
|
|
popularity-contest popularity-contest/participate boolean false |
|
|
|
|
|
|
|
### Boot loader installation |
|
|
|
{% if bootloader is defined %} |
|
|
|
# This is fairly safe to set, it makes grub install automatically to the MBR |
|
|
|
# if no other operating system is detected on the machine. |
|
|
|
d-i grub-installer/only_debian boolean true |
|
|
|
|
|
|
|
# This one makes grub-installer install to the MBR if it also finds some other |
|
|
|
# OS, which is less safe as it might not be able to boot that other OS. |
|
|
|
d-i grub-installer/with_other_os boolean true |
|
|
|
|
|
|
|
d-i grub-installer/bootdev string {{ bootdev | default("default") }} |
|
|
|
|
|
|
|
d-i grub-installer/password-crypted password {{ passwords_hashed["grub"] }} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
### Finishing up the installation |
|
|
|
# Avoid that last message about the install being complete. |
|
|
|
d-i finish-install/reboot_in_progress note |
|
|
|
|
|
|
|
### Running custom commands during the installation |
|
|
|
d-i preseed/run string run.sh |
|
|
|
d-i preseed/run/checksum string {{ run_sh.stat.md5 }} |
|
|
|
|
|
|
|
d-i preseed/late_command string mkdir -p /target/root/.ssh; cp /.ssh/authorized_keys /target/root/.ssh/authorized_keys; mkdir -p /target/home/local-admin/.ssh; cp /.ssh/authorized_keys /target/home/local-admin/.ssh/authorized_keys; |