# Kickstart file for scripts.mit.edu # Parameters: # local_mirror = ${local_mirror} # official_mirror = ${official_mirror} # fedora_release = ${fedora_release} # arch = ${arch} # hostname = ${hostname} # ip = ${ip} # backend_ip = ${backend_ip} # source_server = ${source_server} # source_ip = ${source_ip} # branch = ${branch} install url --url=${local_mirror}/fedora/linux/releases/${fedora_release}/Fedora/${arch}/os lang en_US.UTF-8 keyboard us network --device eth0 --bootproto static --ip ${ip} --netmask 255.255.0.0 --gateway 18.181.0.1 --nameserver 18.70.0.160,18.71.0.151,18.72.0.3 --hostname ${hostname} network --device eth1 --bootproto static --ip ${backend_ip} --netmask 255.255.0.0 timezone --utc America/New_York selinux --disabled authconfig --enableshadow --passalgo=sha512 --enablefingerprint firewall --disabled clearpart --none --drives=xvda,xvde --initlabel ignoredisk --only-use=xvde,xvda part / --fstype=ext3 --grow --asprimary --size=1 part swap --grow --size=1 bootloader --location=mbr --driveorder=xvda,xvde --append="console=hvc0 rhgb quiet" repo --name="Fedora ${fedora_release} - ${arch}" --baseurl=${official_mirror}/fedora/linux/releases/${fedora_release}/Everything/${arch}/os/ 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 # 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 "${source_ip} ${source_server}" >> /etc/hosts alias asbuild="sudo -H -u scripts-build env HOME=/home/scripts-build" cd /srv svn co svn://${source_server}/${branch} repository 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 cd 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 make install-deps cd /root svn co svn://${source_server}/${branch}/server/fedora/config/etc etc mkdir vice cd vice svn co svn://${source_server}/${branch}/server/fedora/config/usr/vice/etc etc %end