Skip to content

Instantly share code, notes, and snippets.

@shebpamm
Created September 24, 2021 11:32
Show Gist options
  • Save shebpamm/10c23cd104efa3476a25bef741e3c678 to your computer and use it in GitHub Desktop.
Save shebpamm/10c23cd104efa3476a25bef741e3c678 to your computer and use it in GitHub Desktop.
Kickstart template for RHEL 8
lang en_US
keyboard us
timezone Europe/Helsinki --isUtc
reboot
text
cdrom
bootloader --location=mbr --append="rhgb quiet crashkernel=auto"
zerombr
clearpart --all --initlabel
autopart
authselect --passalgo=sha512 --useshadow
selinux --enforcing
firewall --ssh
skipx
firstboot --disable
user --name=[change this] --groups=wheel --iscrypted --password=[hashed pass]
network --bootproto=static --ip={{ inventory_hostname }} --netmask=255.255.255.0 --gateway=192.168.1.1 --nameserver=8.8.8.8,8.8.4.4 --hostname={{ scheme_name }}
%packages
@^minimal-environment
kexec-tools
python39
git
vim
%end
%post
pip3 install ssh-import-id
ssh-import-id -o /home/[change this]/.ssh/authorized_keys gh:[and this]
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment