# This kickstart configuration is for a PowerEdge 2850 # Creates system partitions (requires approx 30GB) and # leaves any extra space unformatted. ###################################### # Start global configuration options # ###################################### # See the kickstart documentation for an explanation of these options # http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-kickstart2-options.html lang en_AU langsupport en_AU keyboard us mouse timezone Australia/Sydney rootpw --iscrypted reboot install url --url http:///CentOS-5/os/x86_64 bootloader --location=mbr # Wipe the MBR zerombr yes # Remove the existing partition table clearpart --all --initlabel # Disk partitioning information part /boot --fstype ext2 --size 100 --asprimary --ondisk=sda part swap --size 2048 --asprimary --ondisk=sda part / --fstype ext3 --size 10240 --asprimary --ondisk=sda part /home --fstype ext3 --size 3072 --ondisk=sda part /tmp --fstype ext2 --size 500 --ondisk=sda part /var --fstype ext3 --size 16384 --ondisk=sda auth --useshadow --enablemd5 firewall --disabled selinux --disabled skipx # Perform installation in text mode to save probing video hardware text #################################### # End global configuration options # #################################### # Package install information %packages --resolvedeps e2fsprogs grub kernel lynx net-snmp net-snmp-utils strace ntp exim vim-enhanced vim-common perl-Digest-HMAC perl-Digest-SHA1 # Packages to remove -NetworkManager -aspell -aspell-en -bluez-bluefw -bluez-hcidump -bluez-libs -bluez-utils -cups -cups-libs -dos2unix -dosfstools -finger -fontconfig -freetype -glib -gpm -hesiod -htmlview -ipsec-tools -irda-utils -isdn4k-utils -lftp -lha -libjpeg -libpng -libtiff -nano -pcmcia-cs -pinfo -ppp -redhat-lsb -rp-pppoe -sendmail -talk -unix2dos -unzip -wireless-tools -wvdial -xorg-x11-Mesa-libGL -xorg-x11-libs -yp-tools -ypbind -zip %post echo "Automated Dot SOE installation `/bin/date`" > /etc/motd # Install BCFG2 client rpm -i http:///CentOS-5/local/RPMS/x86_64/redhat-lsb-3.0-8.EL.dot.x86_64.rpm rpm -i http:///CentOS-5/local/RPMS/x86_64/lxml-0.9-1.x86_64.rpm rpm -i http:///CentOS-5/local/RPMS/noarch/bcfg2-0.8.4-2.dot.noarch.rpm # Install default configuration files wget http:///CentOS-5/local/config/snmpd.conf -O /etc/snmpd/snmpd.conf wget http:///CentOS-5/local/config/exim.conf -O /etc/exim/exim.conf wget http:///CentOS-5/local/config/bcfg2.conf -O /etc/bcfg2.conf # Turn off root logins via SSH echo -en '\n#Turn off root login via sshd\nPermitRootLogin no\n' >> /etc/ssh/sshd_config # Turn off unwanted services chkconfig --del cpuspeed chkconfig --del iptables chkconfig --del kudzu chkconfig --del mdmonitor chkconfig --del microcode_ctl chkconfig --del rpcidmapd chkconfig --del rpcgssd chkconfig --del smartd chkconfig --del xinetd chkconfig --del gpm chkconfig --del lm_sensors chkconfig --del haldaemon chkconfig --del messagebus