]> scripts.mit.edu Git - xen.git/blob - scripts.ks
Change hard-coded source_server to a currently existing one
[xen.git] / scripts.ks
1 # Kickstart file for scripts.mit.edu
2
3 # Parameters:
4 #   local_mirror    = ${local_mirror}
5 #   official_mirror = ${official_mirror}
6 #   fedora_release  = ${fedora_release}
7 #   arch            = ${arch}
8 #   hostname        = ${hostname}
9 #   ip              = ${ip}
10 #   backend_ip      = ${backend_ip}
11 #   source_server   = ${source_server}
12 #   source_ip       = ${source_ip}
13 #   branch          = ${branch}
14
15 install
16 url --url=${local_mirror}/fedora/linux/releases/${fedora_release}/Fedora/${arch}/os
17 lang en_US.UTF-8
18 keyboard us
19 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}
20 network --device eth1 --bootproto static --ip ${backend_ip} --netmask 255.255.0.0
21
22 timezone --utc America/New_York
23 selinux --disabled
24 authconfig --enableshadow --passalgo=sha512 --enablefingerprint
25 firewall --disabled
26
27 clearpart --none --drives=xvda,xvde --initlabel
28 ignoredisk --only-use=xvde,xvda
29 part / --fstype=ext3 --grow --asprimary --size=1
30 part swap --grow --size=1
31
32 bootloader --location=mbr --driveorder=xvda,xvde --append="console=hvc0 rhgb quiet"
33 repo --name="Fedora ${fedora_release} - ${arch}"  --baseurl=${official_mirror}/fedora/linux/releases/${fedora_release}/Everything/${arch}/os/
34
35 services --enabled=network,named,ntpd --disabled=avahi-daemon,nfslock,pcscd,rpcbind,rpcgssd,rpcidmapd,isdn,sendmail
36
37 user --name=scripts-build --groups=mock
38
39 poweroff
40
41 %packages
42 @core
43 @online-docs
44 # Build tools
45 subversion
46 make
47 redhat-lsb
48 autofs
49 vim
50 emacs
51 mock
52 # Scripts software
53 bind
54 mod_fcgid
55 nrpe
56 nagios-plugins-all
57 fprintd-pam
58 389-ds-base
59 # Installed so we can disable its service
60 isdn4k-utils
61 %end
62
63 %post --erroronfail
64 set -e
65 echo "" >> /etc/hosts
66 echo "${source_ip} ${source_server}" >> /etc/hosts
67 alias asbuild="sudo -H -u scripts-build env HOME=/home/scripts-build"
68 cd /srv
69 svn co svn://${source_server}/${branch} repository
70 sed -i 's/^\(# *\)?store-passwords.*/store-passwords = no/' /root/.subversion/config
71 sed -i 's/^\(# *\)?store-auth-creds.*/store-auth-creds = no/' /root/.subversion/config
72 chown -R scripts-build /srv/repository
73 cd repository
74 asbuild svn up # generate the config file
75 asbuild sed -i 's/^\(# *\)?store-passwords.*/store-passwords = no/' /home/scripts-build/.subversion/config
76 asbuild sed -i 's/^\(# *\)?store-auth-creds.*/store-auth-creds = no/' /home/scripts-build/.subversion/config
77 cd /srv/repository/server/fedora
78 make install-deps
79 cd /root
80 svn co svn://${source_server}/${branch}/server/fedora/config/etc etc
81 mkdir vice
82 cd vice
83 svn co svn://${source_server}/${branch}/server/fedora/config/usr/vice/etc etc
84 %end