Skip to content

Instantly share code, notes, and snippets.

@martezr
Last active October 11, 2019 23:10
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save martezr/64ee6bed763ab731a490ee14e0f911d4 to your computer and use it in GitHub Desktop.
Save martezr/64ee6bed763ab731a490ee14e0f911d4 to your computer and use it in GitHub Desktop.
CentOS 7 Kickstart File
#version=RHEL7
# Action
install
cdrom
lang en_US.UTF-8
keyboard us
text
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
firstboot --disable
timezone --utc America/Chicago
# Network information
network --bootproto=dhcp --onboot=on --ipv6=auto --activate
# Root password
rootpw password
# System services
#services --enabled=NetworkManager,sshd,chronyd
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
autopart --type=lvm
zerombr
# Partition clearing information
clearpart --all --drives=sda
# Selinux State
selinux --permissive
%packages --nobase
@core --nodefaults
# @base
-aic94xx-firmware
-alsa-*
-atmel-firmware
-b43-openfwwf
-bfa-firmware
-ipw2100-firmware
-ipw2200-firmware
-ivtv-firmware
-iwl100-firmware
-iwl105-firmware
-iwl135-firmware
-iwl1000-firmware
-iwl2000-firmware
-iwl2030-firmware
-iwl3160-firmware
-iwl3945-firmware
-iwl4965-firmware
-iwl5000-firmware
-iwl5150-firmware
-iwl6000-firmware
-iwl6000g2a-firmware
-iwl6000g2b-firmware
-iwl6050-firmware
-iwl7260-firmware
-libertas-usb8388-firmware
-libertas-sd8686-firmware
-libertas-sd8787-firmware
-ql2100-firmware
-ql2200-firmware
-ql23xx-firmware
-ql2400-firmware
-ql2500-firmware
-rt61pci-firmware
-rt73usb-firmware
-xorg-x11-drv-ati-firmware
-zd1211-firmware
-NetworkManager*
-fprintd-pam
-intltool
-plymouth*
-postfix
-biosdevname
-btrfs-progs*
-dracut-network
-iprutils
-ivtv*
-libertas*
-kexec-tools
%end
%post
yum -y install epel-release
yum -y install open-vm-tools
yum -y install perl
%end
reboot --eject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment