ansible-role-debianunattended/README.md

55 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2021-06-08 00:40:34 +02:00
# ansible-role-debianunattended
Create a Debian ISO for unattended installation
Variables:
* debianunattended_debian_installer_language: de
* debianunattended_debian_installer_country: DE
* debianunattended_debian_installer_locale: de_DE.UTF-8
* debianunattended_keyboard_configuration_xkb_keymap: de
2022-01-10 19:18:06 +01:00
* debianunattended_hostname: "{{ debianunattended_hostname | default('debianunattended') }}"
2021-06-08 00:40:34 +02:00
* debianunattended_user_fullname: username
* debianunattended_username: username
* debianunattended_user_crypt_password: passwordhash
* debianunattended_time_zone: EU/Berlin
2022-01-10 19:18:06 +01:00
* 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
2022-11-29 16:59:48 +01:00
* debianunattended_partman_auto_method | default('regular')
2022-11-28 23:04:03 +01:00
* debianunattended_partman_disk1: vda
* debianunattended_partman_disk2: vdb
2022-11-29 16:59:48 +01:00
* debianunattended_partman_auto_disk: /dev/{{ debianunattended_partman_disk1 }} /dev/{{ debianunattended_partman_disk2 }}
* debianunattended_partman_auto_expert_recipe | default('')
* debianunattended_partman_auto_raid_recipe | default('')
2022-11-28 23:04:03 +01:00
```
RAID1-Example on 2 disks:
debianunattended_partman_auto_method: raid
2022-11-29 16:59:48 +01:00
debianunattended_partman_disk1: vda
debianunattended_partman_disk1: vdb
debianunattended_partman_auto_disk: /dev/{{ debianunattended_partman_disk1 }} /dev/{{ debianunattended_partman_disk1 }}
2022-11-28 23:04:03 +01:00
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 \
2022-11-29 16:59:48 +01:00
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 .
2022-11-28 23:04:03 +01:00
```
2022-01-10 19:18:06 +01:00
#backup-ip-address for environment without dhcp
* debianunattended_staticip_ipaddress: 192.168.1.42
* debianunattended_staticip_netmask: 255.255.255.0
* debianunattended_staticip_gateway: 192.168.1.1
* debianunattended_staticip_nameservers: 192.168.1.1
* debianunattended_mirror: ftp.de.debian.org
2021-06-08 00:40:34 +02:00
2022-11-28 23:04:03 +01:00
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