Add 'installbox' configuration.

This commit is contained in:
Andreas B. Mundt 2018-05-31 18:20:51 +03:00
commit 546dabd7aa
16 changed files with 323 additions and 0 deletions

View file

@ -0,0 +1,27 @@
- name: make preseed directory available
file:
path: "{{ tftp_root }}/d-i/{{ di_dist }}"
state: directory
- name: provide preseed file
template:
src: preseed.cfg
dest: "{{ tftp_root }}/d-i/{{ di_dist }}"
- name: make installbox resolvable in /etc/hosts from LAN
replace:
dest: /etc/hosts
regexp: '(127.0.1.1\s+)installbox'
replace: '\1localhost\n{{ ipaddr_lan }} installbox'
- name: add auto boot entry to di-netboot-assistant
blockinfile:
dest: /etc/di-netboot-assistant/pxelinux.HEAD
insertbefore: EOF
block: |
LABEL quick
MENU LABEL Debian Installer ({{ di_dist }} ; amd64 + Preseed)
kernel ::/di-netboot-pkg/images/9/amd64/text/debian-installer/amd64/linux
append initrd=::/di-netboot-pkg/images/9/amd64/text/debian-installer/amd64/initrd.gz auto=true priority=critical url=tftp://installbox
TIMEOUT 100
notify: "rebuild di-netboot-assistant menu"

View file

@ -0,0 +1,37 @@
#### Preconfiguration file
## For more examples and comments:
## https://www.debian.org/releases/stable/example-preseed.txt
## To change default values:
#d-i foo/bar string value
#d-i foo/bar seen false
## Use this as boot parameter:
## DEBCONF_DEBUG=5
## Boot parameter locale?=de_DE
# Preseeding only locale sets language, country and locale:
d-i debian-installer/locale string de_DE
d-i keyboard-configuration/xkb-keymap select de
## Skip root account:
d-i passwd/root-login boolean false
### Apt setup
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i mirror/http/mirror string {{ deb_mirror }}
### Ansible User
d-i passwd/user-fullname string Ansible User
d-i passwd/username string ansible
d-i passwd/user-password password insecure
d-i passwd/user-password-again password insecure
#d-i passwd/user-password-crypted password [crypt(3) hash]
### Package selection
tasksel tasksel/desktop multiselect standard openssh-server
tasksel tasksel/desktop seen false
# Individual additional packages to install
d-i pkgsel/include string firmware-linux