# Kickstart file for scripts.mit.edu # GET parameters: # release ::= ... | 15 | 16 | 17 | rawhide # hostname ::= # type ::= scripts | xvm # allpkg ::= 0 | 1 (whether or not to install all packages) # Parameters: # local_mirror = ftp://mirrors.mit.edu # official_mirror = http://download3.fedora.redhat.com/pub # fedora_release = 15 # arch = x86_64 # hostname = # ip = 3.141.41.187 # backend_ip = 172.21.0.187 # source_server = scripts.mit.edu # source_ip = 18.181.0.43 # branch = trunk # type = scripts install url --url=ftp://mirrors.mit.edu/fedora/linux/releases/15/Fedora/x86_64/os lang en_US.UTF-8 keyboard us network --device eth0 --bootproto static --ip 3.141.41.187 --netmask 255.255.0.0 --gateway 3.141.0.1 --nameserver 18.70.0.160 --nameserver 18.71.0.151 --nameserver 18.72.0.3 --hostname network --device eth1 --bootproto static --ip 172.21.0.187 --netmask 255.255.0.0 --nameserver 18.70.0.160 --nameserver 18.71.0.151 --nameserver 18.72.0.3 timezone --utc America/New_York selinux --disabled authconfig --enableshadow --passalgo=sha512 --enablefingerprint firewall --disabled #clearpart --all --drives=xvda,xvde --initlabel #part biosboot --fstype=biosboot --size=1 --ondisk=/dev/xvda #part /boot --fstype=ext3 --size=500 --ondisk=/dev/xvda part / --fstype=ext4 --grow --size=1 --ondisk=/dev/xvda part swap --grow --size=1 --ondisk=/dev/xvde # TODO: handle AFS cache partitions bootloader --location=mbr --driveorder=xvda,xvde --append="console=hvc0 rhgb quiet" repo --name="Fedora 15 - x86_64" --baseurl=http://download3.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/ repo --name="Fedora 15 Updates - x86_64" --baseurl=http://download3.fedora.redhat.com/pub/fedora/linux/updates/15/x86_64/ services --enabled=network,named,ntpd --disabled=avahi-daemon,nfslock,pcscd,rpcbind,rpcgssd,rpcidmapd,isdn,sendmail user --name=scripts-build --groups=mock poweroff %packages @core @online-docs # Build tools subversion make redhat-lsb autofs vim emacs mock screen # Scripts software bind mod_fcgid nrpe nagios-plugins-all fprintd-pam 389-ds-base # Installed so we can disable its service isdn4k-utils %end %post --erroronfail set -e echo "" >> /etc/hosts echo "18.181.0.43 scripts.mit.edu" >> /etc/hosts alias asroot="sudo -H -u root env HOME=/root" alias asbuild="sudo -H -u scripts-build env HOME=/home/scripts-build" cd /srv svn co svn://scripts.mit.edu/trunk repository cd repository asroot svn up # generate the config file sed -i 's/^\(# *\)\?store-passwords.*/store-passwords = no/' /root/.subversion/config sed -i 's/^\(# *\)\?store-auth-creds.*/store-auth-creds = no/' /root/.subversion/config chown -R scripts-build /srv/repository asbuild svn up # generate the config file asbuild sed -i 's/^\(# *\)\?store-passwords.*/store-passwords = no/' /home/scripts-build/.subversion/config asbuild sed -i 's/^\(# *\)\?store-auth-creds.*/store-auth-creds = no/' /home/scripts-build/.subversion/config cd /srv/repository/server/fedora cd /root svn co svn://scripts.mit.edu/trunk/server/fedora/config/etc etc mkdir vice cd vice svn co svn://scripts.mit.edu/trunk/server/fedora/config/usr/vice/etc etc touch /etc/nologin chattr +i /etc/nologin %end