Tags:
create new tag
, view all tags

Kickstart file used as the base in Installing CentOS On Cluster Via NFS

Notes

This base kickstart file (anaconda-ks.cfg) was run through the following one-liner to generate node-specific kickstart files for the install described in Installing CentOS On Cluster Via NFS.

for i in $(cat ~/hostnames.new) ; do \
   cat anaconda-ks.cfg | sed s/NODE_HOSTNAME/$i/g | sed s/NODE_STATIC_IP/$(grep $i /etc/hosts | awk '{print $1}')/g > ks-$i.cfg ; \
done

There are many more things that could have been added to the script that runs after the install (the post-install section marked %post). For example:

  • cleaning up all the eth0 information
  • getting the /etc/hosts file (although we should really use an internal DNS server...)
  • setting up the NFS
  • setting up all the users
  • setting up SunGridEngine
  • setting up the NTP clock synchronization cronjob

The actual anaconda-ks.cfg file (except root password hash and public key were removed)

# anaconda kickstart file for the new cluster nodes (i.e those installed Feb 2007)

install
nfs --server=192.168.0.13 --dir=/home/tmp/centos/
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "ATI Rage XL" --videoram 8192 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16 --startxonboot  --defaultdesktop gnome
network --device eth0 --onboot no --bootproto dhcp --hostname NODE_HOSTNAME
network --device eth1 --bootproto static --ip NODE_STATIC_IP --netmask 255.255.255.0 --gateway 192.168.0.1 --nameserver 128.32.136.12,128.32.206.12,128.32.206.9 --hostname NODE_HOSTNAME
rootpw --iscrypted ROOT_PASSWORD_REMOVED_FOR_SECURITY_PURPOSES
firewall --enabled --port=22:tcp
selinux --disabled
authconfig --enableshadow --enablemd5
timezone America/Los_Angeles
bootloader --location=mbr --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=hda
part /boot --fstype ext3 --size=100 --ondisk=hda
part pv.3 --size=0 --grow --ondisk=hda
volgroup VolGroup00 --pesize=32768 pv.3
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1000 --grow --maxsize=2000

%packages
@ office
@ compat-arch-development
@ engineering-and-scientific
@ mysql
@ admin-tools
@ editors
@ xemacs
@ emacs
@ system-tools
@ gnome-software-development
@ text-internet
@ x-software-development
@ legacy-network-server
@ dns-server
@ gnome-desktop
@ dialup
@ authoring-and-publishing
@ ftp-server
@ network-server
@ games
@ compat-arch-support
@ legacy-software-development
@ base-x
@ graphics
@ web-server
@ printing
@ mail-server
@ server-cfg
@ sound-and-video
@ sql-server
@ news-server
@ development-tools
@ ruby
@ xemacs
@ graphical-internet
amanda-server
postfix
mod_auth_kerb
lslk
system-config-samba
system-config-httpd
mod_authz_ldap
amanda-client
dmalloc
cyrus-imapd-utils
tn5250
memtest86+
qt-ODBC
postgresql-pl
radvd
dhcp
nasm
system-config-printer
mysql-server
php-mysql
php-pgsql
mysql-bench
postgresql-jdbc
gnome-pilot-conduits
pvm
rsh-server
bootparamd
gcc-objc
festival
rarpd
freeradius
kernel-smp-devel
dejagnu
icon-slicer
ElectricFence
ypserv
cyrus-imapd
system-config-boot
mod_auth_mysql
createrepo
php-odbc
system-switch-mail
frysk
netdump-server
xorg-x11-doc
device-mapper-multipath
iscsi-initiator-utils
vlock
xorg-x11-Xnest
kernel-devel
postgresql
sysstat
talk-server
dtach
quagga
gftp
cyrus-imapd-nntp
postgresql-test
gnome-nettool
unixODBC-kde
cyrus-imapd-murder
httpd-suexec
vnc
sblim-wbemcli
gcc4-c++
x3270-x11
net-snmp-utils
system-config-printer-gui
telnet-server
xorg-x11-sdk
rdesktop
system-switch-mail-gnome
postgresql-docs
tftp-server
subversion
mtx
postgresql-odbc
amtu
lvm2
vnc-server
mrtg
postgresql-server
iptraf
sblim-gather
thunderbird
tog-pegasus
dhcpv6
lksctp-tools-doc
eog
qt-MySQL
hpoj
kernel-smp
openldap-servers
fsh
rusers-server
mc
xcdroast
kernel-doc
pmake
oddjob
postgresql-contrib
ddd
tetex-xdvi
am-utils
dasher
unixODBC-kde
exim
xfig
cproto
nedit
squirrelmail
gcc4-gfortran
krb5-server
joe
uucp
system-config-kickstart
gcc4
tsclient
xorg-x11-Xvfb
nmap-frontend
postgresql-tcl
lam
mailman
e2fsprogs
mod_auth_pgsql
perl-Cyrus
gcc-gnat
expect

%post

#!/bin/bash

## set up machine for passwordless access
mkdir /root/.ssh
chmod 700 /root/.ssh
echo ssh-rsa PUBLIC_KEY_REMOVED_FOR_SECURITY_PURPOSES root@sheridan > /root/.ssh/authorized_keys

## remove the (bogus) IP addy for eth0 that the installer forced us to specify so that
## we could do a network install (although the installer never used this interface)
echo DeviceList.Ethernet.eth0.IP= | system-config-network-cmd -i
echo DeviceList.Ethernet.eth0.Netmask= | system-config-network-cmd -i


-- AndrewUzilov - 08 Mar 2007

Topic revision: r4 - 2007-03-08 - AndrewUzilov
 

This site is powered by the TWiki collaboration platformCopyright © 2008-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
TWiki Appliance - Powered by TurnKey Linux