Compare commits
38
Commits
1987344d15
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59a3f5efaa | ||
|
|
e8b4bf8a3a | ||
|
|
be3ba1b6ef | ||
|
|
a73806dde2 | ||
|
|
8b5a165b34 | ||
|
|
1bade76655 | ||
|
|
23b94c361b | ||
|
|
6414b455d8 | ||
|
|
d580ace85a | ||
|
|
5604cff61e | ||
|
|
12b0ef4031 | ||
|
|
98613ff6e8 | ||
|
|
94548d06a8 | ||
|
|
651d5c1e05 | ||
|
|
ef62ba8c8a | ||
|
|
637672d648 | ||
|
|
1e1974189f | ||
|
|
69705bfdef | ||
|
|
29f0154e4a | ||
|
|
6796b0a07f | ||
|
|
14c3a2df71 | ||
|
|
f21b7f2a40 | ||
|
|
7eb70c653d | ||
|
|
1e2663bb42 | ||
|
|
b4a71873b8 | ||
|
|
80353518f2 | ||
|
|
bf59f8b1ef | ||
|
|
680e8c8269 | ||
|
|
64cc52cdba | ||
|
|
d6cfa28eee | ||
|
|
6328e907ae | ||
|
|
f7a6479c51 | ||
|
|
a1c9783258 | ||
|
|
fa95ba5e60 | ||
|
|
7611c8db8b | ||
|
|
4764d01cab | ||
|
|
7f4e6a7b31 | ||
|
|
ad785e3cec |
No files matched your search
@@ -15,6 +15,34 @@ Variables:
|
|||||||
* debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common
|
* debianunattended_additional_packages: git nano wget bash-completion curl socat multitail python-apt-common software-properties-common
|
||||||
* debianunattended_proxystring: http://hostname:port
|
* debianunattended_proxystring: http://hostname:port
|
||||||
* debianunattended_mirror: ftp.de.debian.org
|
* 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
|
#backup-ip-address for environment without dhcp
|
||||||
* debianunattended_staticip_ipaddress: 192.168.1.42
|
* debianunattended_staticip_ipaddress: 192.168.1.42
|
||||||
* debianunattended_staticip_netmask: 255.255.255.0
|
* debianunattended_staticip_netmask: 255.255.255.0
|
||||||
@@ -22,4 +50,6 @@ Variables:
|
|||||||
* debianunattended_staticip_nameservers: 192.168.1.1
|
* debianunattended_staticip_nameservers: 192.168.1.1
|
||||||
* debianunattended_mirror: ftp.de.debian.org
|
* 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
@@ -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
|
- name: check if iso exists
|
||||||
stat:
|
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
|
delegate_to: localhost
|
||||||
register: iso_exists
|
register: iso_exists
|
||||||
|
|
||||||
@@ -10,13 +22,13 @@
|
|||||||
when: iso_exists.stat.exists
|
when: iso_exists.stat.exists
|
||||||
|
|
||||||
- name: install stuff
|
- name: install stuff
|
||||||
apt:
|
package:
|
||||||
name:
|
name:
|
||||||
- xorriso
|
- xorriso
|
||||||
- unzip
|
- unzip
|
||||||
- genisoimage
|
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: create project directory
|
- name: create project directory
|
||||||
file:
|
file:
|
||||||
@@ -26,9 +38,10 @@
|
|||||||
|
|
||||||
- name: Download ISO Image
|
- name: Download ISO Image
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/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-11.4.0-amd64-netinst.iso"
|
dest: "/opt/ansiblepackages/debianunattended/debian-{{ debianunattended_debian_version }}-amd64-netinst.iso"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: delete old stuff
|
- name: delete old stuff
|
||||||
file:
|
file:
|
||||||
@@ -37,7 +50,7 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: extract ISO Image
|
- 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:
|
args:
|
||||||
creates: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/install.amd/initrd.gz"
|
creates: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/install.amd/initrd.gz"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
@@ -48,6 +61,19 @@
|
|||||||
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/preseed.cfg"
|
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/preseed.cfg"
|
||||||
delegate_to: localhost
|
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
|
- name: generate /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/md5sum.sh
|
||||||
template:
|
template:
|
||||||
src: md5sum.sh.j2
|
src: md5sum.sh.j2
|
||||||
@@ -88,7 +114,7 @@
|
|||||||
|
|
||||||
- name: copy authorized_keys file
|
- name: copy authorized_keys file
|
||||||
copy:
|
copy:
|
||||||
src: files/authorized_keys
|
src: files/ssh-keys.pub
|
||||||
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/authorized_keys"
|
dest: "/opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles/authorized_keys"
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
@@ -134,5 +160,5 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: genisoimage
|
- 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
|
delegate_to: localhost
|
||||||
@@ -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,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /opt/ansiblepackages/debianunattended/isofiles
|
cd /opt/ansiblepackages/debianunattended/{{ inventory_hostname }}/isofiles
|
||||||
md5sum $(find -follow -type f) > md5sum.txt
|
md5sum $(find -follow -type f) > md5sum.txt
|
||||||
+64
-32
@@ -1,8 +1,8 @@
|
|||||||
#_preseed_V1
|
#_preseed_V1
|
||||||
#### Contents of the preconfiguration file (for bullseye)
|
#### Contents of the preconfiguration file (for trixie)
|
||||||
### Localization
|
### Localization
|
||||||
# Preseeding only locale sets language, country and locale.
|
# 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.
|
# The values can also be preseeded individually for greater flexibility.
|
||||||
d-i debian-installer/language string {{ debianunattended_debian_installer_language | default('de') }}
|
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/xkb-keymap select {{ debianunattended_keyboard_configuration_xkb_keymap | default('de') }}
|
||||||
# d-i keyboard-configuration/toggle select No toggling
|
# 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
|
### Network configuration
|
||||||
# Disable network configuration entirely. This is useful for cdrom
|
# Disable network configuration entirely. This is useful for cdrom
|
||||||
# installations on non-networked devices where the network questions,
|
# 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/dhcp_timeout string 60
|
||||||
#d-i netcfg/dhcpv6_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
|
# If you prefer to configure the network manually, uncomment this line and
|
||||||
# the static network configuration below.
|
# the static network configuration below.
|
||||||
#d-i netcfg/disable_autoconfig boolean true
|
#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
|
# values set here. However, setting the values still prevents the questions
|
||||||
# from being shown, even if values come from dhcp.
|
# from being shown, even if values come from dhcp.
|
||||||
d-i netcfg/get_hostname string {{ inventory_hostname }}
|
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
|
# 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
|
# 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.
|
# The wacky dhcp hostname that some ISPs use as a password of sorts.
|
||||||
#d-i netcfg/dhcp_hostname string radish
|
#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
|
# 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
|
# configure the installer to always try to load it, without prompting. Or
|
||||||
# change to false to disable asking.
|
# change to false to disable asking.
|
||||||
@@ -94,7 +108,9 @@ d-i netcfg/wireless_wep string
|
|||||||
#d-i network-console/password-again password r00tme
|
#d-i network-console/password-again password r00tme
|
||||||
|
|
||||||
### Mirror settings
|
### Mirror settings
|
||||||
|
# Mirror protocol:
|
||||||
# If you select ftp, the mirror/country string does not need to be set.
|
# 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/protocol string ftp
|
||||||
d-i mirror/country string manual
|
d-i mirror/country string manual
|
||||||
d-i mirror/http/hostname string {{ debianunattended_mirror | default('ftp.de.debian.org') }}
|
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
|
# You may set this to any valid setting for $TZ; see the contents of
|
||||||
# /usr/share/zoneinfo/ for valid values.
|
# /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
|
# Controls whether to use NTP to set the clock during the install
|
||||||
d-i clock-setup/ntp boolean true
|
d-i clock-setup/ntp boolean true
|
||||||
# NTP server to use. The default is almost always fine here.
|
# 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
|
#d-i clock-setup/ntp-server string ntp.example.com
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
### Partitioning
|
### Partitioning
|
||||||
## Partitioning example
|
## Partitioning example
|
||||||
@@ -164,7 +184,7 @@ d-i clock-setup/ntp boolean true
|
|||||||
# - regular: use the usual partition types for your architecture
|
# - regular: use the usual partition types for your architecture
|
||||||
# - lvm: use LVM to partition the disk
|
# - lvm: use LVM to partition the disk
|
||||||
# - crypto: use LVM within an encrypted partition
|
# - 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
|
# 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
|
# 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 boolean true
|
||||||
d-i partman-lvm/confirm_nooverwrite 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
|
# - atomic: all files in one partition
|
||||||
# - home: separate /home partition
|
# - home: separate /home partition
|
||||||
# - multi: separate /home, /var, and /tmp partitions
|
# - 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
|
d-i partman-auto/choose_recipe select atomic
|
||||||
|
{% endif %}
|
||||||
# Or provide a recipe of your own...
|
# Or provide a recipe of your own...
|
||||||
# If you have a way to get a recipe file into the d-i environment, you can
|
# If you have a way to get a recipe file into the d-i environment, you can
|
||||||
# just point at it.
|
# 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.
|
# Force UEFI booting ('BIOS compatibility' will be lost). Default: false.
|
||||||
#d-i partman-efi/non_efi_system boolean true
|
#d-i partman-efi/non_efi_system boolean true
|
||||||
# Ensure the partition table is GPT - this is required for EFI
|
# 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
|
#d-i partman-partitioning/default_label string gpt
|
||||||
|
|
||||||
# When disk encryption is enabled, skip wiping the partitions beforehand.
|
# 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
|
#d-i partman-auto/disk string /dev/sda /dev/sdb
|
||||||
|
|
||||||
# Next you need to specify the physical partitions that will be used.
|
# 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 \
|
#d-i partman-auto/expert_recipe string \
|
||||||
# multiraid :: \
|
# multiraid :: \
|
||||||
# 1000 5000 4000 raid \
|
# 1000 5000 4000 raid \
|
||||||
@@ -276,6 +300,7 @@ d-i partman/confirm_nooverwrite boolean true
|
|||||||
# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
|
# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
|
||||||
# <devices> <sparedevices>
|
# <devices> <sparedevices>
|
||||||
|
|
||||||
|
{{ debianunattended_partman_auto_raid_recipe | default('') }}
|
||||||
#d-i partman-auto-raid/recipe string \
|
#d-i partman-auto-raid/recipe string \
|
||||||
# 1 2 0 ext3 / \
|
# 1 2 0 ext3 / \
|
||||||
# /dev/sda1#/dev/sdb1 \
|
# /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
|
#d-i base-installer/kernel/image string linux-image-686
|
||||||
|
|
||||||
### Apt setup
|
### 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.
|
# You can choose to install non-free and contrib software.
|
||||||
d-i apt-setup/non-free boolean true
|
d-i apt-setup/non-free boolean true
|
||||||
d-i apt-setup/contrib 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.
|
# Uncomment this if you don't want to use a network mirror.
|
||||||
#d-i apt-setup/use_mirror boolean false
|
#d-i apt-setup/use_mirror boolean false
|
||||||
# Select which update services to use; define the mirrors to be used.
|
# Select which update services to use; define the mirrors to be used.
|
||||||
# Values shown below are the normal defaults.
|
# Values shown below are the normal defaults.
|
||||||
d-i apt-setup/services-select multiselect security, updates
|
#d-i apt-setup/services-select multiselect security, updates
|
||||||
d-i apt-setup/security_host string security.debian.org
|
#d-i apt-setup/security_host string security.debian.org
|
||||||
|
|
||||||
# Additional repositories, local[0-9] available
|
# Additional repositories, local[0-9] available
|
||||||
#d-i apt-setup/local0/repository string \
|
#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
|
# apt will complain about the unauthenticated repository and so the
|
||||||
# sources.list line will be left commented out.
|
# sources.list line will be left commented out.
|
||||||
#d-i apt-setup/local0/key string http://local.server/key
|
#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
|
# or one can provide it in-line by base64 encoding the contents of the
|
||||||
# ASCII-armoured PGP key, if it ends in ".gpg" it needs to use the
|
# key file (with `base64 -w0`) and specifying it thus:
|
||||||
# "GPG key public keyring" format, the "keybox database" format is
|
#d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
|
||||||
# currently not supported.
|
# 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
|
# By default the installer requires that repositories be authenticated
|
||||||
# using a known gpg key. This setting can be used to disable that
|
# 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, web-server, kde-desktop
|
||||||
tasksel tasksel/first multiselect standard
|
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
|
# Individual additional packages to install
|
||||||
d-i pkgsel/include string openssh-server build-essential {{ debianunattended_additional_packages | default('') }}
|
d-i pkgsel/include string openssh-server build-essential {{ debianunattended_additional_packages | default('') }}
|
||||||
# Whether to upgrade packages after debootstrap.
|
# Whether to upgrade packages after debootstrap.
|
||||||
# Allowed values: none, safe-upgrade, full-upgrade
|
# Allowed values: none, safe-upgrade, full-upgrade
|
||||||
d-i pkgsel/upgrade select 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,
|
# installed, and what software you use. The default is not to report back,
|
||||||
# but sending reports helps the project determine what software is most
|
# 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
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
### Boot loader installation
|
### 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:
|
# not be determined safely in general, so this needs to be specified:
|
||||||
#d-i grub-installer/bootdev string /dev/sda
|
#d-i grub-installer/bootdev string /dev/sda
|
||||||
# To install to the primary device (assuming it is not a USB stick):
|
# 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
|
# Alternatively, if you want to install to a location other than the UEFI
|
||||||
# parition/boot record, uncomment and edit these lines:
|
# 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.
|
# Avoid that last message about the install being complete.
|
||||||
d-i finish-install/reboot_in_progress note
|
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.
|
# which is useful in some situations.
|
||||||
#d-i cdrom-detect/eject boolean false
|
#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.
|
# packages and run commands in the target system.
|
||||||
d-i preseed/late_command string /cdrom/late_command.sh
|
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 %}
|
{% if debianunattended_staticip_ipaddress is defined %}
|
||||||
#static IPv4 address?
|
#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_failed note
|
||||||
d-i netcfg/dhcp_options select Configure network manually
|
d-i netcfg/dhcp_options select Configure network manually
|
||||||
d-i netcfg/get_ipaddress string { debianunattended_staticip_ipaddress }
|
d-i netcfg/get_ipaddress string {{ debianunattended_staticip_ipaddress }}
|
||||||
d-i netcfg/get_netmask string { debianunattended_staticip_netmask }
|
d-i netcfg/get_netmask string {{ debianunattended_staticip_netmask }}
|
||||||
d-i netcfg/get_gateway string { debianunattended_staticip_gateway }
|
d-i netcfg/get_gateway string {{ debianunattended_staticip_gateway }}
|
||||||
d-i netcfg/get_nameservers string { debianunattended_staticip_nameservers }
|
d-i netcfg/get_nameservers string {{ debianunattended_staticip_nameservers }}
|
||||||
d-i netcfg/confirm_static boolean true
|
d-i netcfg/confirm_static boolean true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
Reference in new issue
Block a user