<?xml version="1.0" standalone="no"?>

<kickstart roll="hpc">

  <description>
  
  A Rocks Cluster Frontend machine.  This is your login host.

  </description>

  <changelog>
  $Log: frontend.xml,v $
  Revision 1.15  2006/06/22 22:14:21  bruno
  Kickstart_PartsizeRoot and Kickstart_PartsizeSwap moved into base roll

  Revision 1.14  2006/01/27 22:29:44  bruno
  stable (mostly) after integration of new foundation and localization code

  Revision 1.13  2005/04/14 00:22:23  fds
  Simpler master key management: on catastrophic recovery, we manually
  move CA and 411 keys. Makes USB security key operation more intuitive.

  Revision 1.12  2005/04/12 01:56:15  fds
  Moved certificate management earlier in the install process.

  Revision 1.11  2005/03/24 23:00:38  bruno
  fix for CD-based installs

  Revision 1.10  2005/03/04 01:40:08  mjk
  massive graph cleanup

  Revision 1.4  2005/02/16 00:40:04  mjk
  graph cleanup

  Revision 1.3  2005/02/01 23:37:10  mjk
  remove roll attrs

  Revision 1.2  2004/04/28 17:34:19  bruno
  added support for variable-sized root and swap partitions

  Revision 1.1  2004/03/19 03:29:36  bruno
  frontend-wan is dead

  frontend-base and compute-base are the new nodes in which to derive new
  appliances

  Revision 1.6  2004/02/12 00:38:50  fds
  More inline with config-frontend.

  Revision 1.5  2004/02/03 00:57:25  mjk
  decolorize / derollize

  Revision 1.4  2004/01/30 00:22:54  mjk
  color hpc green

  Revision 1.3  2003/08/06 00:14:34  fds
  More explicit

  Revision 1.2  2003/07/23 21:21:59  fds
  Added RRD restoration, remove unneeded perl logic.

  Revision 1.1  2003/07/07 20:47:51  bruno
  initial release

  Revision 1.13  2003/04/25 18:15:09  bruno
  first pass at adding all the new rocks config screens

  Revision 1.12  2003/04/24 16:59:41  mjk
  - add order tags
  - edge and order tags can have children
  	This just make the graph look nicer, no functional change
  - added include directory
  - moved install class code into include directory
  - dependecies enforced via topological sort
  - weight attributes are dead
  - long live order tags
  - the 'gen' attribute is currently ignored.  This will be used to support
    other graph ordering requirements (e.g. testing, cfengine, ...)

  Revision 1.11  2002/11/27 04:56:54  bruno
  fix: can now have user-settable NIS domains

  Revision 1.10  2002/10/09 23:16:27  bruno
  fixup of package names to match our new source tree

  Revision 1.9  2002/10/09 21:05:14  bruno
  we can now build a cdrom again (after source tree reorganization)

  Revision 1.8  2002/09/12 18:44:41  bruno
  more 2.3 changes

  Revision 1.7  2002/07/10 18:54:03  bruno
  changes to make 7.3 installation from CD work

  Revision 1.6  2002/07/03 23:33:11  bruno
  7.3 fixes

  Revision 1.5  2002/02/15 21:44:09  mjk
  Release and DTF changes

  Revision 1.4  2002/02/02 02:21:53  bruno
  slim down number of packages installed

  Revision 1.3  2001/11/09 23:50:54  mjk
  - Post release ia64 changes

  Revision 1.2  2001/11/06 18:12:40  mjk
  - Made emacs its own node (reuse in frontend and standalone)
  - removed Victor's NFS stuff from accounting
  - public/private root passwords match on the form
  - Fixed private kickstart host on the form

  Revision 1.1  2001/10/15 23:13:01  bruno
  newer is better.


  </changelog>


<!-- Set variables to reasonable defaults. -->

<var name="Kickstart_ZeroMBR" val="yes"/>
<var name="Kickstart_Grub" val="--location=mbr"/>
<var name="Kickstart_PrivateNISDomain" val="rocks"/>
<var name="Kickstart_Keyboard" val="us"/>
<var name="Kickstart_Mouse" val="genericps/2"/>


  <package>rocks-config-frontend</package>
  <package>rocks-admin-frontend</package>
  <package>gnupg</package>


  <main>
    <interactive/>

    <url>--url http://<var name="Kickstart_PrivateHostname"/>/<var name="Kickstart_PrivateKickstartBasedir"/>/<var name="Node_Distribution"/></url>

    <network>--bootproto static --ip 10.1.1.1 --netmask 255.0.0.0 --device eth0 --gateway 10.1.1.1 --nameserver 10.1.1.1 --hostname frontend-0</network>
    <auth>--useshadow --enablemd5 --enablenis --nisdomain <var name="Kickstart_PrivateNISDomain"/></auth>
  </main>


  <installclass>
    <include file="installclass/master-keys.py"/>
    <include file="installclass/frontend.py"/>
  </installclass>


<post>

<!--
	why do this? the genius minds at redhat have decided to use
	/dev/random to generate random bytes in the super block of a
	a ram file system. /dev/random only has so many 'secure' bytes in
	it and when 'mkcramfs' is called, it loops, waiting for more
	bytes. but, if it calls /dev/urandom, it halts.
-->
      
rm /dev/random

mknod /dev/random c 1 9

<!-- Turn off auto reinstall by default -->
/sbin/chkconfig rocks-grub off

<file name="/etc/motd" mode="append">
Rocks Frontend Node - <var name="Info_ClusterName"/> Cluster
</file>

<!-- For debugging: stalls the install.
touch /tmp/stall-install
while [ -f /tmp/stall-install ]; do sleep 1; done
-->

</post>

</kickstart> 

