ansible-install-server/roles/fai/templates/etc/fai/nfsroot.conf.j2

63 lines
2.4 KiB
Django/Jinja

# For a detailed description see nfsroot.conf(5)
# Two or three parameters for debootstrap(8), space separated.
# Debootstrap is called as the first part of fai-make-nfsroot unless -B is used.
# This variable defines SUITE and MIRROR for debootstrap.
# The third parameter is the name of the bootstrap script variant to use.
# Example:
# FAI_DEBOOTSTRAP="bullseye http://deb.debian.org/debian"
FAI_DEBOOTSTRAP="{{ debian_release_nfsroot +
' http://' + server_name + ':3142/debian' }}"
# Options that will be passed to debootstrap(8).
# Used for excluding packages and for specifying a different architecture.
FAI_DEBOOTSTRAP_OPTS="--exclude=wget"
# The encrypted root password on all install clients during the installation process.
# Used when log in via ssh.
# This is not the password for the new installed system.
# Example:
#
# FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' # pw is fai
#
# Use mkpasswd, htpasswd or md5pass for generating the password hash.
#
# echo "yoursecrectpassword" | mkpasswd -m md5 -s
FAI_ROOTPW="{{ fai_hw4f_rootpw_fai
| password_hash("sha512", fai_hw4f_password_salt ) }}"
# Directory on the install server where the nfsroot is created.
NFSROOT="{{ fai_dir_nfsroot }}"
# Directory of hooks to be sourced at the end of fai-make-nfsroot,
# i.e. they have to be shell scripts.
NFSROOT_HOOKS="{{ fai_etc_dir }}/nfsroot-hooks"
# IP address of the NFS server for the rootfs if not on the DHCP server.
# This is only used by fai-chboot to work around dracut's DHCP handling
# which prefers the DHCP server's IP address above all other DHCP options.
# NFSROOT_SERVER=
# This multiline variable is added to /etc/hosts inside the nfsroot.
# You can use this when DNS is not available on the clients.
# Example:
# NFSROOT_ETC_HOSTS="{{ server_address}} {{ server_name }}"
# Directory on the install server for the tftp data, used by PXE network boot.
TFTPROOT="{{ tftp_dir }}"
# Location of the configuration space on the install server.
# Used by fai-cd(8), fai-mirror(1) and fai-setup(8).
FAI_CONFIGDIR="{{ fai_dir_config }}"
# Used to specify the interface when detecting the subnet for the exportfs line.
# Only needed when the install server has multiple interfaces.
# SERVERINTERFACE=
# Location of a ssh public key file.
# This user can log into the install clients in as root without a password.
# Only useful with FAI_FLAGS="sshd". Example:
# SSH_IDENTITY=/home/admin/.ssh/id_rsa.pub