<?xml version='1.0' encoding='UTF-8'?>

<profile xmlns:xi='http://www.w3.org/2001/XInclude'>

<!-- Profile identification:

    Name                Occurs     Type    Descr
    profile_name        1          str     Unique identifier for this profile,
                                           Should match the filename
    profile_revision    1          str     Use $LastChangedRevision: 16754 $ to 
                                           allow svn to auto increment
                                           the version id
    profile_author      1          str     Use $LastChangedBy tag to allow svn
                                           to automatically set this value
    profile_date        1          str     Use $LastChangedDate tag to allow svn
                                           to automatically set this value
    profile_descr       1          str     A human readable description of
                                           the profile.                     
    profile_type        1          str     public | private
 -->

    <profile_name>rhel3_base</profile_name>
    <profile_revision>$LastChangedRevision: 16754 $</profile_revision>
    <profile_author>$LastChangedBy: cubitrepo $</profile_author>
    <profile_date>$LastChangedDate: 2008-03-05 02:15:12 -0800 (Wed, 05 Mar 2008) $</profile_date>
    <profile_descr>
        Demo profile containing a basic RHEL3 install set up.
    </profile_descr>
    <profile_type>public</profile_type>

<!-- Profile operating system identification:

    Name         Occurs     Type    Descr
    os_vendor    1          str     Operating system vendor name
    os_name      1          str     Operating system name
    os_release   1          str     Operating system release/version
    os_arch      1+         str     CPU architecture supported by
                                    this operating system

    The autoinst stylesheets will generate paths, urls to the
    location of the media files using a fixed structure determined
    by the values of these tags. This structure is as follows:

    $MEDIA_DIST/os/$os_vendor/$os_name/$os_release/$os_arch/                 -->

    <os_vendor>redhat</os_vendor>
    <os_name>RHEL</os_name>
    <os_release>3U7</os_release>
    <os_arch>i386</os_arch>

    <anaconda>
        <attr name='lang'>en_US.UTF-8</attr>
        <attr name='langsupport'>--default en_US.UTF-8 en_US.UTF-8</attr>
        <attr name='timezone'>America/Los_Angeles</attr>
        <attr name='keyboard'>us</attr>
        <attr name='mouse'>none</attr>
        <attr name='text'/>
        <attr name='skipx'/>
        <attr name='rootpw'>changeme</attr>
        <attr name='auth'>--enableshadow --enablemd5</attr>
        <attr name='firewall'>--disabled</attr>
        <attr name='zerombr'>yes</attr>
        <attr name='clearpart'>--all</attr>
        <attr name='bootloader'>--location=mbr</attr>
        <attr name='reboot'/>
    </anaconda>

<!-- leave out volume tag 
    <partition name='/'>
        <size>10</size>
        <grow>true</grow>
        <filesystem>ext3</filesystem>
        <volume>hda</volume>
    </partition>
-->
    <partition name='/'>
        <size>1024</size>
        <grow>true</grow>
        <filesystem>ext3</filesystem>
    </partition>

    <partition name='/boot'>
        <size>200</size>
        <filesystem>ext3</filesystem>
    </partition>

    <partition name='swap'>
        <size>2048</size>
    </partition>

    <!-- this includes everything in the distribution -->
    <packages>
        <category>base-x</category>
        <category>editors</category>
        <category>admin-tools</category>
        <category>system-tools</category>
        <category>development-tools</category>
        <category>kernel-development</category>
        <package>kernel-source</package>
        <package>kernel-smp-unsupported</package>
        <package>kernel-smp</package>
        <package>net-snmp</package>
        <package>ntp</package>
        <package>sysstat</package>
    </packages>

    <services>
        <service name='autofs'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='ntpd'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='snmpd'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='portmap'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='netfs'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='nfslock'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='vmware'>
            <state>on</state>
            <runlevel>3</runlevel>
        </service>
        <service name='iptables'>
            <state>off</state>
        </service>
        <service name='ip6tables'>
            <state>off</state>
        </service>
        <service name='isdn'>
            <state>off</state>
        </service>
        <service name='pcmcia'>
            <state>off</state>
        </service>
        <service name='rhnsd'>
            <state>off</state>
        </service>
        <service name='pcmcia'>
            <state>off</state>
        </service>
        <service name='cups'>
            <state>off</state>
        </service>
    </services>

    <accounts>
        <setrootpw/>
        <addgroup gid="1050">ops</addgroup>
        <addgroup gid="1060">localadm</addgroup>
        <mkdir>/u1</mkdir>
        <mkdir>/root/kslogs</mkdir>
        <mkdir>/usr/X11R6/lib/X11</mkdir>
        <mkdir mode='775' owner="root" group='ops'>/var/ops</mkdir>
        <mkdir mode='775' owner="root" group='ops'>/u1/dist</mkdir>
    </accounts>

    <pre/>

    <post>
        <pkgmgr>
            <!-- OS vender patch cluster, applied after OS installation,
                 and removing extra OS package, but before local packages 
                 are installed.  

                 path is relative to "AI_GROUP/media/<public|private>/path"
            -->

            <patchcluster path="/patch/redhat/EL3/i386/20060116-6"/>

            <!-- action attribute only applies to rpms. For tars and zip, the only
             action is to install:
                 action = "install | upgrdate | remove"

             path attribute is required if action is either install or upgrade.
             following syntax are supported for path attribute:

                UNIX NFS convention:   "server:/exported/path"
                                       "/path" , using default NFS server and volume
                URL:    "protocal://server:port/path/to/file"
                    where protocol = http | https | pbl
            Examples:
              These are all the same, except the one from pbl:
                <rpms action="install" path="/package/local/EL3/i386/">
                <rpms action="install" path="nas4:/vol/public/package/local/EL3/i386/">
                <rpms action="install" path="http://mgr/public/package/local/EL3/i386/">
                <rpms action="install" path="https://mgr/public/package/local/EL3/i386/">

                <rpms action="install" path="pbl://mgr/pbl/zork/pub/">

            NOTE: During Solaris jumpstart, name service is not available, so
                  please always use IP addresses, instead of hostnames.
            -->
            <rpms action="install" path="/package/local/EL3/i386/">
                <rpm>xmlstarlet-1.0.1-1.i586.rpm</rpm>
            </rpms>
            <rpms action="install" path="/package/local/EL3/cubit/">
                <rpm>aiupdate-2-3.noarch.rpm</rpm>
            </rpms>

            <!--
            <rpms action="remove">
                <rpm>openssh</rpm>
                <rpm>openssh-clients</rpm>
                <rpm>openssh-askpass</rpm>
                <rpm>openssh-askpass-gnome</rpm>
                <rpm>openssh-server</rpm>
            </rpms>
            -->

            <!-- For both tars and zips, uses same syntax for path attribute
                 only for tars, compressed = "compress | gzip"
            -->

            <tars path="package/local/EL3/cubit/">
                <pre/>
                <post/>
                <tar compressed="compress" dest="/">
                    <name>craps.tar.Z</name>
                    <pre/>
                    <post/>
                </tar>
            </tars>
            <zips path="package/local/EL3/cubit/">
                <pre/>
                <post/>
                <zip dest="/usr/local">
                    <name>craps.zip</name>
                    <pre/>
                    <post/>
                </zip>
            </zips>
            -->
        </pkgmgr>

        <!-- With script tag,  you can either include common shell commands 
             from include files or enclose them directly here, like following 
             examples:
             Note: included files should be placed in ".../profiles/includes" directory

        <script include="includes/sample-shell-script"/>

        <script>
          if [ -L /usr/jdk ]; then
              rm /usr/jdk
          fi
          ln -s /usr/java/j2sdk1.4.2_04 /usr/jdk
        </script>

        -->
    </post>
</profile>
