<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<!--
################################################################################
# AutoYast Config File
# Build    - sles9.06.1
# Platform - DL380 10.5G drive
#
# Notes:
#  - This config file will be kept as simple as possible, thus pushing most of the
#    configuration into the post install script.
#
# Created by: Travis Sidelinger
# Version History:
#  - 2006Nov17 : TLS : Added post script items, added libapr0 package for svn
#  - 2006Nov16 : TLS : Added compat-sles8 because hpasm needs it
#  - 2006Oct26 : TLS : turned off confirmation
#  - 2006Oct24 : TLS : Initial release, copied from VMware template
#
#
################################################################################
-->
  <configure>
<!-- Network ################################################################-->
    <networking>
      <dns>
        <dhcp_hostname config:type="boolean">false</dhcp_hostname>
        <dhcp_resolv config:type="boolean">true</dhcp_resolv>
        <domain>columbuslibrary.org</domain>
        <hostname>new-server</hostname>
        <nameservers config:type="list">
          <nameserver>192.168.220.11</nameserver>
          <nameserver>192.168.220.12</nameserver>
        </nameservers>
      </dns>
      <interfaces config:type="list">
        <interface>
          <bootproto>dhcp</bootproto>
          <device>eth0</device>
          <startmode>onboot</startmode>
        </interface>
      </interfaces>
      <modules config:type="list">
        <module_entry>
          <device>static-0</device>
        </module_entry>
      </modules>
      <routing>
        <ip_forward config:type="boolean">false</ip_forward>
      </routing>
    </networking>
    <runlevel>
      <default>3</default>
      <services config:type="list">
        <service>
          <service_start>3</service_start>
        </service>
      </services>
    </runlevel>
<!-- Scripts ################################################################-->
    <scripts>
      <pre-scripts config:type="list">
        <script>
          <filename>task-pre.sh</filename>
          <interpreter>shell</interpreter>
          <source><![CDATA[#!/bin/sh
# Make sure time has been sync'ed
ntpdate ntp1.columbuslibrary.org
ntpdate ntp2.columbuslibrary.org
]]></source>
        </script>
      </pre-scripts>
      <chroot-scripts config:type="list">
        <script>
          <chrooted config:type="boolean">true</chrooted>
          <filename>task-post.sh</filename>
          <interpreter>shell</interpreter>
          <source><![CDATA[#!/bin/sh
# Make sure time has been sync'ed
ntpdate ntp1.columbuslibrary.org
ntpdate ntp2.columbuslibrary.org

# Start a post setup log
echo "Post Autoyast Script" > /var/log/install.log
date >> /var/log/install.log

# Set root's passwd, not sure how to do this in autoyast
sed -i 's/^root/#root/g' /etc/shadow
echo 'root:CrvptY6M7B4ws:13473:0:10000::::' >> /etc/shadow

# Get the post build files
mount -a
wget -qc http://wiki.columbuslibrary.org/build/sles9.06.1/sles9.06.1.tar.gz -O - | tar -xz -C /sa
]]></source>
        </script>
      </chroot-scripts>
    </scripts>
  </configure>
<!-- General Install ########################################################-->
  <install>
    <general>
      <clock>
        <hwclock>localtime</hwclock>
        <timezone>US/Eastern</timezone>
      </clock>
      <keyboard>
        <keymap>english-us</keymap>
      </keyboard>
      <language>en_US</language>
      <mode>
        <confirm config:type="boolean">false</confirm>
        <forceboot config:type="boolean">false</forceboot>
      </mode>
      <mouse>
        <id>none</id>
      </mouse>
    </general>
<!-- Disk Layout ############################################################-->
    <partitioning config:type="list">
      <drive>
        <device>/dev/sda</device>
        <partitions config:type="list">
          <partition>
            <filesystem config:type="symbol">ext3</filesystem>
            <format config:type="boolean">true</format>
            <mount>/boot</mount>
            <partition_id config:type="integer">131</partition_id>
            <partition_nr config:type="integer">1</partition_nr>
            <partition_type>primary</partition_type>
            <size>268435456</size>
          </partition>
          <partition>
            <lvm_group>system</lvm_group>
            <partition_id config:type="integer">142</partition_id>
            <partition_nr config:type="integer">2</partition_nr>
            <partition_type>primary</partition_type>
            <size>10733989888</size>
          </partition>
        </partitions>
        <use>all</use>
      </drive>
      <drive>
        <device>/dev/system</device>
        <is_lvm_vg config:type="boolean">true</is_lvm_vg>
        <lvm2 config:type="boolean">true</lvm2>
        <partitions config:type="list">
          <partition>
            <filesystem config:type="symbol">ext3</filesystem>
            <format config:type="boolean">true</format>
            <lv_name>home</lv_name>
            <mount>/home</mount>
            <size>1073741824</size>
          </partition>
          <partition>
            <filesystem config:type="symbol">ext3</filesystem>
            <format config:type="boolean">true</format>
            <lv_name>root</lv_name>
            <mount>/</mount>
            <size>6442450944</size>
          </partition>
          <partition>
            <filesystem config:type="symbol">ext3</filesystem>
            <format config:type="boolean">true</format>
            <lv_name>tmp</lv_name>
            <mount>/tmp</mount>
            <size>536870912</size>
          </partition>
          <partition>
            <filesystem config:type="symbol">ext3</filesystem>
            <format config:type="boolean">true</format>
            <lv_name>var</lv_name>
            <mount>/var</mount>
            <size>2147483648</size>
          </partition>
          <partition>
            <filesystem config:type="symbol">swap</filesystem>
            <format config:type="boolean">true</format>
            <lv_name>swap</lv_name>
            <mount>swap</mount>
            <size>536870912</size>
          </partition>
        </partitions>
        <pesize>4M</pesize>
        <use>all</use>
      </drive>
    </partitioning>
<!-- Packages ###############################################################-->
    <software>
      <addons config:type="list">
        <addon>Base-System</addon>
        <addon>Basis-Devel</addon>
        <addon>LSB</addon>
        <addon>Linux-Tools</addon>
        <addon>YaST2</addon>
        <addon>auth</addon>
      </addons>
      <base>Minimal</base>
      <!-- Package Additions -->
      <packages config:type="list">
        <!-- Useful Tools -->
        <package>expect</package>
        <package>acct</package>
        <package>ulimit</package>
        <package>acpid</package>
        <package>quota</package>
        <package>dump</package>
        <package>dhcp-client</package>
        <package>cadaver</package>
        <package>stunnel</package>
        <package>openssl-doc</package>
        <package>icmp-info</package>
        <package>iptraf</package>
        <package>nmap</package>
        <package>netacct</package>
        <package>netdiag</package>
        <package>ntop</package>
        <package>whois</package>
        <package>samba-doc</package>
        <package>pxe</package>
        <package>cups-client</package>
        <package>sysstat</package>
        <package>rug</package>
        <package>lkcdutils</package>
        <package>libapr0</package>
        <!-- Needed for HP tools -->
        <package>compat-sles8</package>
        <package>kernel-source</package>
        <!-- Developer Tools and Libraries -->
        <package>python</package>
        <package>python-doc</package>
        <package>phthon-ldap</package>
        <package>phthon-mysql</package>
        <package>phthon-xml</package>
        <package>perl-DBD-mysql</package>
        <package>perl-IO-Socket-SSL</package>
        <package>perl-Net-DNS</package>
        <package>perl-Net-SNMP</package>
        <package>perl-Net-SSLeay</package>
        <package>perl-ldap-ssl</package>
        <package>perl-XML-Generator</package>
      </packages>
      <!-- Package Subtractions -->
      <remove-packages  config:type="list">
        <package>nagios</package>
        <package>nagios-nsca</package>
        <package>nagios-plugins</package>
        <package>openldap2</package>
      </remove-packages>
    </software>
  </install>
</profile>

