Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Created March 28, 2017 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackknight36/fa70725cfd29f4bf0fda6385c715230b to your computer and use it in GitHub Desktop.
Save blackknight36/fa70725cfd29f4bf0fda6385c715230b to your computer and use it in GitHub Desktop.
# System authorization information
install
url --url="http://packages.example.com/pub/fedora/25/Everything/x86_64/os"
auth --enableshadow --passalgo=sha512
# Use network installation
skipx
# Run the Setup Agent on first boot
firstboot --disable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# SELinux configuration
selinux --enforcing
# Network information
network --bootproto=dhcp --noipv6 --hostname=ks-temp.example.com --device=link
# Root password
rootpw --iscrypted $6$xxxxxxxxxx$xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# System timezone
timezone America/New_York --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Clear the MBR
zerombr
# Partition clearing information - Clear all by default
clearpart --all --drives=sda
%packages
@container-management
@core
@domain-client
@editors
@headless-management
@server-hardware-support
@server-product
@standard
%end
%post
dnf -y install git puppet
%end
%addon com_redhat_kdump --disable --reserve-mb='128'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --emptyok
pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --emptyok
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment