Compare commits

...
38 Commits
Author SHA1 Message Date
DigitalInfinity 59a3f5efaa update playbook. dont need default version any more 2026-08-02 20:34:00 +02:00
DigitalInfinity e8b4bf8a3a update debian default version 2026-06-02 15:47:16 +02:00
DigitalInfinity be3ba1b6ef updated debian version 2026-03-26 19:22:48 +01:00
DigitalInfinity a73806dde2 updated debian version to 13.3.0 2026-02-06 23:13:44 +01:00
DigitalInfinity 8b5a165b34 debian version aktualisiert 2025-12-05 15:03:03 +01:00
DigitalInfinity 1bade76655 updated debian version 2025-12-05 15:02:21 +01:00
DigitalInfinity 23b94c361b Versoin Debian auf 13.1.0 erhöht 2025-11-20 22:09:55 +01:00
DigitalInfinity 6414b455d8 wird nicht mehr benötigt 2025-08-29 23:57:15 +02:00
DigitalInfinity d580ace85a das ist default schon so 2025-08-29 23:26:54 +02:00
DigitalInfinity 5604cff61e non-free firmware dazu 2025-08-29 23:26:39 +02:00
DigitalInfinity 12b0ef4031 wird wohl nicht mehr benötigt 2025-08-29 23:26:20 +02:00
DigitalInfinity 98613ff6e8 Lieber nichts erzwingen 2025-08-29 23:25:22 +02:00
DigitalInfinity 94548d06a8 update auf debian 13 2025-08-29 23:24:53 +02:00
DigitalInfinity 651d5c1e05 Textänderungen 2025-08-29 23:23:50 +02:00
DigitalInfinity ef62ba8c8a neue Abschnitte - nur Text 2025-08-29 23:22:42 +02:00
DigitalInfinity 637672d648 rolled back. 13.0.0 did noto work 2025-08-12 23:35:10 +02:00
DigitalInfinity 1e1974189f updated to debian 13.0.0 2025-08-12 23:34:04 +02:00
DigitalInfinity 69705bfdef Debian default version auf 12.11.0 umgestellt 2025-08-12 23:27:02 +02:00
DigitalInfinity 29f0154e4a partman method umgestellt auf lvm 2025-08-12 23:26:25 +02:00
DigitalInfinity 6796b0a07f updated debian to 12.10.0 2025-05-11 15:20:15 +02:00
DigitalInfinity 14c3a2df71 updated debian version 2025-01-24 19:16:55 +01:00
DigitalInfinity f21b7f2a40 updated debian to 12.7.0 2024-10-11 19:27:47 +02:00
DigitalInfinity 7eb70c653d updated playbook 2024-08-03 20:22:03 +02:00
DigitalInfinity 1e2663bb42 change to debian 12.4.0, run install tasks only once 2024-02-07 22:08:56 +01:00
DigitalInfinity b4a71873b8 upated 2023-11-12 14:14:07 +01:00
DigitalInfinity 80353518f2 update auf 12.1.ß 2023-07-31 22:26:26 +02:00
DigitalInfinity bf59f8b1ef updated to 12.0.0 2023-06-20 23:29:42 +02:00
DigitalInfinity 680e8c8269 updated to debian 11.6 2023-03-18 18:05:35 +01:00
DigitalInfinity 64cc52cdba updated readme 2022-11-29 16:59:48 +01:00
DigitalInfinity d6cfa28eee update to 11.5.0 2022-11-28 23:04:14 +01:00
DigitalInfinity 6328e907ae add support for raid-config 2022-11-28 23:04:03 +01:00
DigitalInfinity f7a6479c51 set custom ntp server for debian unattended 2022-08-15 15:19:49 +02:00
DigitalInfinity a1c9783258 set default timezone 2022-08-15 15:13:52 +02:00
DigitalInfinity fa95ba5e60 support dns_domain 2022-07-21 23:10:50 +02:00
DigitalInfinity 7611c8db8b disable grub menu from iso to start installation without interaction 2022-07-21 22:36:24 +02:00
DigitalInfinity 4764d01cab fixed path for md5sums 2022-07-21 22:36:01 +02:00
DigitalInfinity 7f4e6a7b31 corrected tasksel 2022-07-21 22:12:07 +02:00
DigitalInfinity ad785e3cec updated for debian 11.4 2022-07-21 22:07:55 +02:00
5 changed files with 290 additions and 42 deletions

No files matched your search

+31 -1
View File
@@ -15,6 +15,34 @@ Variables:
* debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common
* debianunattended_proxystring: http://hostname:port
* debianunattended_mirror: ftp.de.debian.org
* debianunattended_ntpserver: ntp.domain.tld
* debianunattended_partman_auto_method | default('regular')
* debianunattended_partman_disk1: vda
* debianunattended_partman_disk2: vdb
* debianunattended_partman_auto_disk: /dev/{{ debianunattended_partman_disk1 }} /dev/{{ debianunattended_partman_disk2 }}
* debianunattended_partman_auto_expert_recipe | default('')
* debianunattended_partman_auto_raid_recipe | default('')
```
RAID1-Example on 2 disks:
debianunattended_partman_auto_method: raid
debianunattended_partman_disk1: vda
debianunattended_partman_disk1: vdb
debianunattended_partman_auto_disk: /dev/{{ debianunattended_partman_disk1 }} /dev/{{ debianunattended_partman_disk1 }}
debianunattended_partman_auto_expert_recipe: |
d-i partman-auto/expert_recipe string \
multiraid :: \
8192 8192 8192 raid $primary{ } $bootable{ } method{ raid } . \
8192 8192 -1 raid method{ raid } . \
8192 8192 8192 raid method{ raid } .
debianunattended_partman_auto_raid_recipe: |
d-i partman-auto-raid/recipe string \
1 2 0 ext3 /boot /dev/{{ debianunattended_partman_disk1 }}1#/dev/{{ debianunattended_partman_disk1 }}1 . \
1 2 0 ext3 / /dev/{{ debianunattended_partman_disk1 }}5#/dev/{{ debianunattended_partman_disk1 }}5 . \
1 2 0 swap - /dev/{{ debianunattended_partman_disk1 }}6#/dev/{{ debianunattended_partman_disk1 }}6 .
```
#backup-ip-address for environment without dhcp
* debianunattended_staticip_ipaddress: 192.168.1.42
* debianunattended_staticip_netmask: 255.255.255.0
@@ -22,4 +50,6 @@ Variables:
* debianunattended_staticip_nameservers: 192.168.1.1
* debianunattended_mirror: ftp.de.debian.org
Many Thanks to https://www.librebyte.net/en/systems-deployment/unattended-debian-installation/
Many Thanks to
* https://www.librebyte.net/en/systems-deployment/unattended-debian-installation
* https://www.bishnet.net/tim/blog/2015/01/29/understanding-partman-autoexpert_recipe
+34 -8
View File
@@ -1,7 +1,19 @@
---
- name: query current debian release info
uri:
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA256SUMS"
return_content: true
delegate_to: localhost
run_once: true
register: debianunattended_sha256sums
- name: determine current debian version
set_fact:
debianunattended_debian_version: "{{ debianunattended_sha256sums.content | regex_search('debian-([0-9]+\\.[0-9]+\\.[0-9]+)-amd64-netinst\\.iso', '\\1') | first }}"
- name: check if iso exists
stat:
path: "{{ playbook_dir }}/debian-11.4.0-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
path: "{{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
delegate_to: localhost
register: iso_exists
@@ -10,13 +22,13 @@
when: iso_exists.stat.exists
- name: install stuff
apt:
package:
name:
- xorriso
- unzip
- genisoimage
update_cache: yes
delegate_to: localhost
run_once: true
- name: create project directory
file:
@@ -26,9 +38,10 @@
- name: Download ISO Image
get_url:
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.4.0-amd64-netinst.iso"
dest: "/opt/ansiblepackages/debianunattended/debian-11.4.0-amd64-netinst.iso"
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-{{ debianunattended_debian_version }}-amd64-netinst.iso"
dest: "/opt/ansiblepackages/debianunattended/debian-{{ debianunattended_debian_version }}-amd64-netinst.iso"
delegate_to: localhost
run_once: true
- name: delete old stuff
file:
@@ -37,7 +50,7 @@
delegate_to: localhost
- name: extract ISO Image
command: "xorriso -osirrox on -indev /opt/ansiblepackages/debianunattended/debian-11.4.0-amd64-netinst.iso -extract / /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/"
command: "xorriso -osirrox on -indev /opt/ansiblepackages/debianunattended/debian-{{ debianunattended_debian_version }}-amd64-netinst.iso -extract / /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/"
args:
creates: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/install.amd/initrd.gz"
delegate_to: localhost
@@ -48,6 +61,19 @@
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/preseed.cfg"
delegate_to: localhost
- name: generate /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/boot/grub/grub.cfg
template:
src: grub.cfg.j2
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/boot/grub/grub.cfg"
delegate_to: localhost
- name: edit /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/isolinux/isolinux.cfg
ansible.builtin.lineinfile:
path: /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/isolinux/isolinux.cfg
state: absent
line: 'default vesamenu.c32'
delegate_to: localhost
- name: generate /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/md5sum.sh
template:
src: md5sum.sh.j2
@@ -88,7 +114,7 @@
- name: copy authorized_keys file
copy:
src: files/authorized_keys
src: files/ssh-keys.pub
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/authorized_keys"
delegate_to: localhost
@@ -134,5 +160,5 @@
delegate_to: localhost
- name: genisoimage
command: "genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o {{ playbook_dir }}/debian-11.4.0-amd64-netinst-unattended-{{ inventory_hostname }}.iso /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles"
command: "genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o {{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles"
delegate_to: localhost
+160
View File
@@ -0,0 +1,160 @@
set timeout_style=hidden
set timeout=0
set default=1
if loadfont $prefix/font.pf2 ; then
set gfxmode=800x600
set gfxpayload=keep
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod gfxterm
insmod png
terminal_output gfxterm
fi
if background_image /isolinux/splash.png; then
set color_normal=light-gray/black
set color_highlight=white/black
elif background_image /splash.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
insmod play
play 960 440 1 0 4 440 1
set theme=/boot/grub/theme/1
menuentry --hotkey=g 'Graphical install' {
set background_color=black
linux /install.amd/vmlinuz vga=788 --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=i 'Install' {
set background_color=black
linux /install.amd/vmlinuz vga=788 --- quiet
initrd /install.amd/initrd.gz
}
submenu --hotkey=a 'Advanced options ...' {
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
set theme=/boot/grub/theme/1-1
set gfxpayload=keep
menuentry '... Graphical expert install' {
set background_color=black
linux /install.amd/vmlinuz priority=low vga=788 ---
initrd /install.amd/gtk/initrd.gz
}
menuentry '... Graphical rescue mode' {
set background_color=black
linux /install.amd/vmlinuz vga=788 rescue/enable=true --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry '... Graphical automated install' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=x '... Expert install' {
set background_color=black
linux /install.amd/vmlinuz priority=low vga=788 ---
initrd /install.amd/initrd.gz
}
menuentry --hotkey=r '... Rescue mode' {
set background_color=black
linux /install.amd/vmlinuz vga=788 rescue/enable=true --- quiet
initrd /install.amd/initrd.gz
}
menuentry --hotkey=a '... Automated install' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 --- quiet
initrd /install.amd/initrd.gz
}
submenu --hotkey=s '... Speech-enabled advanced options ...' {
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
set theme=/boot/grub/theme/1-1-1
set gfxpayload=keep
menuentry --hotkey=x '... Expert speech install' {
set background_color=black
linux /install.amd/vmlinuz priority=low vga=788 speakup.synth=soft ---
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=r '... Rescue speech mode' {
set background_color=black
linux /install.amd/vmlinuz vga=788 rescue/enable=true speakup.synth=soft --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=a '... Automated speech install' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 speakup.synth=soft --- quiet
initrd /install.amd/gtk/initrd.gz
}
}
}
submenu --hotkey=d 'Accessible dark contrast installer menu ...' {
set menu_color_normal=white/black
set menu_color_highlight=yellow/black
set color_normal=white/black
set color_highlight=yellow/black
background_image
set theme=/boot/grub/theme/dark-1-2
set gfxpayload=keep
menuentry --hotkey=g '... Graphical install' {
set background_color=black
linux /install.amd/vmlinuz vga=788 theme=dark --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=i '... Install' {
set background_color=black
linux /install.amd/vmlinuz vga=788 theme=dark --- quiet
initrd /install.amd/initrd.gz
}
submenu --hotkey=a '... Advanced options ...' {
set menu_color_normal=white/black
set menu_color_highlight=yellow/black
set color_normal=white/black
set color_highlight=yellow/black
background_image
set theme=/boot/grub/theme/dark-1-2-1
set gfxpayload=keep
menuentry '... Graphical expert install' {
set background_color=black
linux /install.amd/vmlinuz priority=low vga=788 theme=dark ---
initrd /install.amd/gtk/initrd.gz
}
menuentry '... Graphical rescue mode' {
set background_color=black
linux /install.amd/vmlinuz vga=788 rescue/enable=true theme=dark --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry '... Graphical automated install' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 theme=dark --- quiet
initrd /install.amd/gtk/initrd.gz
}
menuentry --hotkey=x '... Expert install' {
set background_color=black
linux /install.amd/vmlinuz priority=low vga=788 theme=dark ---
initrd /install.amd/initrd.gz
}
menuentry --hotkey=r '... Rescue mode' {
set background_color=black
linux /install.amd/vmlinuz vga=788 rescue/enable=true theme=dark --- quiet
initrd /install.amd/initrd.gz
}
menuentry --hotkey=a '... Automated install' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 theme=dark --- quiet
initrd /install.amd/initrd.gz
}
}
}
menuentry --hotkey=s 'Install with speech synthesis' {
set background_color=black
linux /install.amd/vmlinuz vga=788 speakup.synth=soft --- quiet
initrd /install.amd/gtk/initrd.gz
}
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/sh
cd /opt/ansiblepackages/debianunattended/isofiles
cd /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles
md5sum $(find -follow -type f) > md5sum.txt
+64 -32
View File
@@ -1,8 +1,8 @@
#_preseed_V1
#### Contents of the preconfiguration file (for bullseye)
#### Contents of the preconfiguration file (for trixie)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
d-i debian-installer/locale string en_US.UTF-8
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string {{ debianunattended_debian_installer_language | default('de') }}
@@ -15,6 +15,15 @@ d-i debian-installer/locale string {{ debianunattended_debian_installer_locale
d-i keyboard-configuration/xkb-keymap select {{ debianunattended_keyboard_configuration_xkb_keymap | default('de') }}
# d-i keyboard-configuration/toggle select No toggling
### Speech synthesis
# Which ALSA card to be used for software speech.
# Can be a number from 0, or an ID as seen in
# /sys/class/sound/card*/id
#d-i espeakup/card string 0
# Which espeak-ng voice to be used
#d-i espeakup/voice string en
### Network configuration
# Disable network configuration entirely. This is useful for cdrom
# installations on non-networked devices where the network questions,
@@ -37,6 +46,7 @@ d-i netcfg/choose_interface select auto
#d-i netcfg/dhcp_timeout string 60
#d-i netcfg/dhcpv6_timeout string 60
# Automatic network configuration is the default.
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
#d-i netcfg/disable_autoconfig boolean true
@@ -67,7 +77,7 @@ d-i netcfg/choose_interface select auto
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string {{ inventory_hostname }}
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_domain string {{ dns_domain | default('unassigned-domain') }}
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
@@ -79,6 +89,10 @@ d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
#d-i netcfg/dhcp_hostname string radish
# If you want to completely disable firmware lookup (i.e. not use firmware
# files or packages that might be available on installation images):
#d-i hw-detect/firmware-lookup string never
# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
@@ -94,7 +108,9 @@ d-i netcfg/wireless_wep string
#d-i network-console/password-again password r00tme
### Mirror settings
# Mirror protocol:
# If you select ftp, the mirror/country string does not need to be set.
# Default value for the mirror protocol: http.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string {{ debianunattended_mirror | default('ftp.de.debian.org') }}
@@ -140,12 +156,16 @@ d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string {{ debianunattended_time_zone }}
d-i time/zone string {{ debianunattended_time_zone | default('EU/Berlin') }}
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
{% if debianunattended_ntpserver is defined %}
d-i clock-setup/ntp-server string {{ debianunattended_ntpserver }}
{% else %}
#d-i clock-setup/ntp-server string ntp.example.com
{% endif %}
### Partitioning
## Partitioning example
@@ -164,7 +184,7 @@ d-i clock-setup/ntp boolean true
# - regular: use the usual partition types for your architecture
# - lvm: use LVM to partition the disk
# - crypto: use LVM within an encrypted partition
d-i partman-auto/method string regular
d-i partman-auto/method string {{ debianunattended_partman_auto_method | default('lvm') }}
# You can define the amount of space that will be used for the LVM volume
# group. It can either be a size with its unit (eg. 20 GB), a percentage of
@@ -181,12 +201,15 @@ d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
# You can choose one of the three predefined partitioning recipes:
# You can choose one of the predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
# - server: separate /var and /srv partitions; swap limitted to 1G
# - small_disk: scheme dedicated to small harddrives (under 10GB)
{% if debianunattended_partman_auto_expert_recipe is not defined %}
d-i partman-auto/choose_recipe select atomic
{% endif %}
# Or provide a recipe of your own...
# If you have a way to get a recipe file into the d-i environment, you can
# just point at it.
@@ -242,7 +265,7 @@ d-i partman/confirm_nooverwrite boolean true
# Force UEFI booting ('BIOS compatibility' will be lost). Default: false.
#d-i partman-efi/non_efi_system boolean true
# Ensure the partition table is GPT - this is required for EFI
#d-i partman-partitioning/choose_label string gpt
#d-i partman-partitioning/choose_label select gpt
#d-i partman-partitioning/default_label string gpt
# When disk encryption is enabled, skip wiping the partitions beforehand.
@@ -256,6 +279,7 @@ d-i partman/confirm_nooverwrite boolean true
#d-i partman-auto/disk string /dev/sda /dev/sdb
# Next you need to specify the physical partitions that will be used.
{{ debianunattended_partman_auto_expert_recipe | default('') }}
#d-i partman-auto/expert_recipe string \
# multiraid :: \
# 1000 5000 4000 raid \
@@ -276,6 +300,7 @@ d-i partman/confirm_nooverwrite boolean true
# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
# <devices> <sparedevices>
{{ debianunattended_partman_auto_raid_recipe | default('') }}
#d-i partman-auto-raid/recipe string \
# 1 2 0 ext3 / \
# /dev/sda1#/dev/sdb1 \
@@ -315,15 +340,25 @@ d-i partman/confirm_nooverwrite boolean true
#d-i base-installer/kernel/image string linux-image-686
### Apt setup
# Choose, if you want to scan additional installation media
# (default: false).
d-i apt-setup/cdrom/set-first boolean false
# You can choose to install non-free firmware.
d-i apt-setup/non-free-firmware boolean true
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
# Uncomment the following line, if you don't want to have the sources.list
# entry for a DVD/BD installation image active in the installed system
# (entries for netinst or CD images will be disabled anyway, regardless of
# this setting).
#d-i apt-setup/disable-cdrom-entries boolean true
# Uncomment this if you don't want to use a network mirror.
#d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
#d-i apt-setup/services-select multiselect security, updates
#d-i apt-setup/security_host string security.debian.org
# Additional repositories, local[0-9] available
#d-i apt-setup/local0/repository string \
@@ -335,10 +370,12 @@ d-i apt-setup/security_host string security.debian.org
# apt will complain about the unauthenticated repository and so the
# sources.list line will be left commented out.
#d-i apt-setup/local0/key string http://local.server/key
# If the provided key file ends in ".asc" the key file needs to be an
# ASCII-armoured PGP key, if it ends in ".gpg" it needs to use the
# "GPG key public keyring" format, the "keybox database" format is
# currently not supported.
# or one can provide it in-line by base64 encoding the contents of the
# key file (with `base64 -w0`) and specifying it thus:
#d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
# The content of the key file is checked to see if it appears to be ASCII-armoured.
# If so it will be saved with an ".asc" extension, otherwise it gets a '.gpg' extension.
# "keybox database" format is currently not supported. (see generators/60local in apt-setup's source)
# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
@@ -353,16 +390,20 @@ d-i apt-setup/security_host string security.debian.org
#tasksel tasksel/first multiselect standard, web-server, kde-desktop
tasksel tasksel/first multiselect standard
# Or choose to not get the tasksel dialog displayed at all (and don't install
# any packages):
#d-i pkgsel/run_tasksel boolean false
# Individual additional packages to install
d-i pkgsel/include string openssh-server build-essential {{ debianunattended_additional_packages | default('') }}
# 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
# You can choose, if your system will 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 should be included on the first CD/DVD.
# popular and should be included on the first DVD.
popularity-contest popularity-contest/participate boolean false
### Boot loader installation
@@ -381,7 +422,7 @@ d-i grub-installer/with_other_os boolean true
# not be determined safely in general, so this needs to be specified:
#d-i grub-installer/bootdev string /dev/sda
# To install to the primary device (assuming it is not a USB stick):
d-i grub-installer/bootdev string default
d-i grub-installer/bootdev string {{ debianunattended_partman_auto_disk | default('default') }}
# Alternatively, if you want to install to a location other than the UEFI
# parition/boot record, uncomment and edit these lines:
@@ -411,7 +452,7 @@ d-i grub-installer/bootdev string default
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
# This will prevent the installer from ejecting the CD during the reboot,
# This will prevent the installer from ejecting the disc during the reboot,
# which is useful in some situations.
#d-i cdrom-detect/eject boolean false
@@ -454,23 +495,14 @@ d-i finish-install/reboot_in_progress note
# packages and run commands in the target system.
d-i preseed/late_command string /cdrom/late_command.sh
##added
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/cdrom/set-next boolean false
d-i apt-setup/cdrom/set-failed boolean false
apt-cdrom-setup apt-setup/cdrom/set-next boolean false
apt-cdrom-setup apt-setup/cdrom/set-failed boolean true
pkgsel/update-policy select none
pkgsel/updatedb boolean true
{% if debianunattended_staticip_ipaddress is defined %}
#static IPv4 address?
d-i netcfg/disable_autoconfig boolean false
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string { debianunattended_staticip_ipaddress }
d-i netcfg/get_netmask string { debianunattended_staticip_netmask }
d-i netcfg/get_gateway string { debianunattended_staticip_gateway }
d-i netcfg/get_nameservers string { debianunattended_staticip_nameservers }
d-i netcfg/get_ipaddress string {{ debianunattended_staticip_ipaddress }}
d-i netcfg/get_netmask string {{ debianunattended_staticip_netmask }}
d-i netcfg/get_gateway string {{ debianunattended_staticip_gateway }}
d-i netcfg/get_nameservers string {{ debianunattended_staticip_nameservers }}
d-i netcfg/confirm_static boolean true
{% endif %}