Skip to content

Instantly share code, notes, and snippets.

@chrisbelyea
Last active March 21, 2018 12:57
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 chrisbelyea/2d340da1fc418a36ba6c7c87bf9205e5 to your computer and use it in GitHub Desktop.
Save chrisbelyea/2d340da1fc418a36ba6c7c87bf9205e5 to your computer and use it in GitHub Desktop.
Kickstart
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
#cdrom
# Use online installation media
url --url="http://mirror.cogentco.com/pub/linux/centos/7/os/x86_64/"
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=eth0 --ipv6=auto --activate
network --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$ViJ6i2XkuDtiJFFT$Gu0k.j8f0pwmHwIsQHxLNRvAtS8D6ca9Q438Iiw3F6Ow4Tc5iMtABeVxmFNbRiBEiAyqJ7Ey.NgtcfdqUqm3a0
# System services
services --enabled=chronyd,sshd
# System timezone
timezone Etc/UTC --isUtc
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
# Add repo to make latest packages available
repo --name=base --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
repo --name=updates --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock
repo --name=extras --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock
%packages
@^minimal
@core
chrony
%end
%addon com_redhat_kdump --disable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
reboot --eject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment