86 lines
2.8 KiB
YAML
86 lines
2.8 KiB
YAML
- hosts: all
|
|
become: yes
|
|
vars:
|
|
use_ipxe: true
|
|
fai_menu: true
|
|
ensure_fai_setup_run: false
|
|
dhcp_interface: eth1
|
|
wan_interface: eth0
|
|
server_name: faiserver
|
|
server_ip: 192.168.33.1
|
|
server_net: 192.168.33
|
|
server_netbits: 24
|
|
server_netmask: 255.255.255.0
|
|
domain_name: lan
|
|
linux_version: 4.19.0-10
|
|
tasks:
|
|
- name: fai package selection
|
|
copy:
|
|
content: |
|
|
PACKAGES install
|
|
linuxmint-keyring
|
|
mintdesktop
|
|
dest: /srv/fai/config/package_config/MINT
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: fai deb conf
|
|
copy:
|
|
content: |
|
|
exim4-config exim4/dc_eximconfig_configtype select local delivery only; not on a network
|
|
locales locales/default_environment_locale select de_DE.UTF-8 en_US.UTF-8
|
|
locales locales/locales_to_be_generated multiselect de_DE.UTF-8 en_US.UTF-8 UTF-8
|
|
keyboard-configuration keyboard-configuration/modelcode string pc105
|
|
keyboard-configuration keyboard-configuration/xkb-keymap select de
|
|
keyboard-configuration keyboard-configuration/variant select USA
|
|
keyboard-configuration keyboard-configuration/model select Generic 105-key (Intl) PC
|
|
keyboard-configuration keyboard-configuration/layoutcode string
|
|
keyboard-configuration keyboard-configuration/optionscode string ctrl:nocaps,terminate:ctrl_alt_bksp
|
|
dest: /srv/fai/config/debconf/DESKTOP
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: fai set host class
|
|
copy:
|
|
content: |
|
|
#! /bin/bash
|
|
echo "DEBIAN GERMAN DESKTOP"
|
|
dest: /srv/fai/config/class/50-host-classes
|
|
mode: 0755
|
|
owner: root
|
|
group: root
|
|
|
|
- name: fai desk config
|
|
copy:
|
|
content: |
|
|
# example of new config file for setup-storage
|
|
#
|
|
# <type> <mountpoint> <size> <fs type> <mount options> <misc options>
|
|
|
|
disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
|
|
|
|
primary / 2G-50G ext4 rw,noatime,errors=remount-ro
|
|
logical swap 200-10G swap sw
|
|
logical /home 100- ext4 rw,noatime,nosuid,nodev createopts="-L home -m 1" tuneopts="-c 0 -i 0"
|
|
dest: /srv/fai/config/disk_config/DESKTOP
|
|
|
|
- name: fai vars
|
|
copy:
|
|
content: |
|
|
FAI_ALLOW_UNSIGNED=0
|
|
UTC=yes
|
|
TIMEZONE=Europe/Berlin
|
|
# pw is "fai"
|
|
ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
|
|
# errors in tasks greater than this value will cause the installation to stop
|
|
STOP_ON_ERROR=700
|
|
# set parameter for install_packages(8)
|
|
MAXPACKAGES=800
|
|
dest: /srv/fai/config/class/DESKTOP.var
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|