Skip to content

Instantly share code, notes, and snippets.

@moutons
Created Oct 1, 2012
Embed
What would you like to do?
CentOS 6.3 kickstart
text
skipx
install
url --url http://ftp.astral.ro/distros/centos/6.3/os/x86_64/
repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/6/x86_64/
repo --name=updates --baseurl=http://ftp.astral.ro/distros/centos/6.3/updates/x86_64/
lang en_US.UTF-8
keyboard us
firewall --disabled
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone Europe/Bucharest
rootpw 7uj8ik9ol
selinux --disabled
network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=centos.evozon.com
zerombr
clearpart --all --initlabel
bootloader --location=mbr --driveorder=xvda --append=" rhgb crashkernel=auto console=hvc0 quiet"
services --enabled=network,ntpd,ntpdate
reboot
%packages --nobase
epel-release
openssh-clients
openssh-server
yum
at
acpid
vixie-cron
cronie-noanacron
crontabs
logrotate
ntp
ntpdate
tmpwatch
rsync
mailx
which
wget
-postfix
-prelink
-selinux-policy-targeted
-sendmail
%end
%post --log=/root/post_install.log
echo
echo "################################"
echo "# Running Post Configuration #"
echo "################################"
cd /tmp
/usr/bin/yum -y update >> /root/post_update.log
/usr/bin/yum -y upgrade >> /root/post_upgrade.log
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/epel.repo
yum install --enablerepo=epel -y htop pv tmux mc
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment