linuxinstaller/cubic/templates/autoinstall.ks.j2
2024-10-27 14:52:35 +01:00

132 lines
4.2 KiB
Django/Jinja

#ubiquity partman-auto/method string crypto
#ubiquity partman-crypto/confirm boolean false
#ubiquity partman-crypto/passphrase password Ubuntu123
#ubiquity partman-crypto/passphrase-again password Ubuntu123
#ubiquity partman-crypto/warn_erase boolean true
#ubiquity partman-crypto/weak_passphrase boolean false
ubiquity ubiquity/use_nonfree boolean true
# Enable extras.ubuntu.com.
d-i apt-setup/extras boolean true
# -------- Localization --------
d-i debian-installer/locale string fr_FR.UTF-8
# -------- Keyboard --------
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string fr
d-i keyboard-configuration/xkb-keymap select fr
# -------- Network --------
d-i netcfg/choose_interface select auto
d-i netcfg/link_wait_timeout string 10
d-i netcfg/dhcp_timeout string 10
d-i netcfg/dhcpv6_timeout string 1
# Set default names to prevent prompts, overwritten by DHCP names.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# -------- Hardware Firmware --------
d-i hw-detect/load_firmware boolean true
# -------- Accounts --------
# disable root user
d-i passwd/root-login boolean false
# base user for system
d-i passwd/user-fullname string
d-i passwd/username string {{ installer_username }}
# Generate with "openssl passwd -6"
d-i passwd/user-password-crypted password {{ installer_password }}
d-i passwd/user-uid string 499
d-i passwd/user-default-groups string adm audio cdrom dip lpadmin sudo plugdev sambashare video
d-i passwd/root-login boolean false
d-i user-setup/encrypt-home boolean false
# -------- Clock and Timezone --------
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i clock-setup/ntp boolean true
d-i time/zone string Europe/Paris
# Partitioning
d-i partman-auto/disk string {{ diskdevice }}
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
# Pour tout mettre dans une seule partition
d-i partman-auto/choose_recipe select atomic
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-auto/init_automatically_partition select biggest_free
d-i partman/confirm_nooverwrite boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
# Set to true if you want to encrypt the first user's home directory.
d-i user-setup/encrypt-home boolean false
# -------- Package Selection --------
# Main tasksel server packages
tasksel tasksel/first multiselect server, openssh-server
# Additional packages to install
d-i pkgsel/include string openssh-server python-software-properties inotify-tools curl unattended-upgrades sysstat nmon tmux ssh vim haveged
# Upgrade packages after bootstrap
d-i pkgsel/upgrade select full-upgrade
# Install security updates automatically
d-i pkgsel/update-policy select unattended-upgrades
# -------- Console Setup --------
# Verbose startup output, drop to console (text) login by default.
d-i debian-installer/quiet boolean false
d-i debian-installer/splash boolean false
# Grub
d-i grub-installer/bootdev string {{ diskdevice }}
#d-i grub-installer/bootdev string default
d-i grub-installer/grub2_instead_of_grub_legacy boolean true
d-i grub-installer/only_debian boolean true
d-i grub-installer/timeout string 5
d-i finish-install/reboot_in_progress note
# -------- Finish Installation --------
d-i cdrom-detect/eject boolean true
d-i finish-install/reboot_in_progress note
# Custom Commands
ubiquity ubiquity/success_command string in-target apt update;\
# Poweroff after install
ubiquity ubiquity/poweroff boolean true
# Reboot after install (nécessite poweroff)
ubiquity ubiquity/reboot boolean true
# -------- Post Installation --------
# After system is setup (before reboot), run post-install script.
#
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install