#Generated by Kickstart Configurator #System language lang en_US #Language modules to install langsupport --default=en_US #System keyboard keyboard us #System mouse mouse generic3ps/2 #Sytem timezone timezone --utc Europe/Amsterdam #Root password rootpw --iscrypted $1$JvqU2F7N$.jl41IgBs5yb8hwbCEmpU/ #Reboot after installation reboot #Use text mode install text #Install Red Hat Linux instead of upgrade install #Use Web installation url --url http://www.dutchgrid.nl/mirror/www.caosity.org/cAos/centos-3/3.3/os/i386/ #System bootloader configuration bootloader --location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #Disk partitioning information part /boot --fstype ext3 --size 256 --asprimary --ondisk hda part swap --size 2048 --asprimary --ondisk hda part / --fstype ext3 --size 16384 --ondisk hda part /var --fstype ext3 --size 8192 --ondisk hda part /export/project --fstype ext3 --size 16384 --grow --ondisk hda #System authorization infomation auth --useshadow --enablemd5 #Network information network --bootproto=dhcp #Firewall configuration firewall --enabled --ssh #Do not configure XWindows skipx #Package install information %packages --resolvedeps @ X Window System @ Editors @ Engineering and Scientific @ Graphical Internet @ Text-based Internet @ Graphics @ Authoring and Publishing @ Server Configuration Tools @ Web Server @ Mail Server @ FTP Server @ Network Servers @ Development Tools @ Kernel Development @ Administration Tools @ System Tools @ Printing Support yum centos-yumconf lynx wget net-tools iproute # post-installation %post if [ -f /etc/yum.conf ] then echo "Configuring yum to use a local mirror" mv /etc/yum.conf /etc/yum.conf.original perl -pe 's+mirror.centos.org+www.dutchgrid.nl/mirror/www.caosity.org/cAos+g' /etc/yum.conf.original > /etc/yum.conf fi echo "Installing CentOS GPG key in RPM GPG repository" wget -q -O /root/RPM-GPG-KEY-CentOS-3 http://www.dutchgrid.nl/mirror/www.caosity.org/cAos/centos-3/RPM-GPG-KEY-CentOS-3 rpm --import /root/RPM-GPG-KEY-CentOS-3 echo "Performing system upgrade to latest patch level" yum -y update # add stuff depending on network interface=`route -A inet -n | awk '/^0.0.0.0/ { print $NF }'` ipaddr=`ip addr show dev $interface | awk '/ inet / { print $2 }'` ipnetwork=`ipcalc -n $ipaddr | sed -e 's/.*=//'` case $ipnetwork in 192.16.186.192 ) echo "Configuring services for NDPF farmnet" authconfig --useshadow --enablemd5 --enableldap --ldapserver "tbn06.nikhef.nl hooimijt.nikhef.nl" --ldapbasedn="dc=farmnet,dc=nikhef,dc=nl" --enablecache --kickstart mv /etc/auto.master /etc/auto.master.original cat > /etc/auto.master <