Next Previous Contents

3. Lizard Unattended Install from a Server

Lizard installs from an install server are highly convenient when you have to (re)install/upgrade/tune a large number of similarly networked clients. The install source and configurations for your client machines are in a central location making them easier to maintain.

3.1 Setting up the Install Server

You have two option when you install from a server

  1. Install lizard=auto (DHCP)
  2. Install lizard=NFSSERVER:/location/of/files (NFS)

DHCP server configuration

On your install server, you create your Lizard directory structure under lizard in your network install source directory. With this your lizard directory will be parallel to your CD mount points. This is the default place where Lizard will look if the path is set to auto. The DHCP entry will need to specify the location in the filename entry. A sample DHCP entry in the dhcp.conf file looks like this:

host phantom {
     hardware ethernet 00:23:27:8B:05:92
     fixed-address     10.10.10.10
     option host-name  "phantom.scary.org"
     next-server       10.10.10.127
     filename          "/mount/cdchanger/"
}

Your install source Directory should e.g. look like this:

/install/lizard
/install/cd1
/install/cd2

NFS server configuration

If you would prefer to have more flexibility you can set up the installation via NFS. In setting up an NFS you must make sure that environment in which the users access is readable, but users do not need to have exec, or write access.

The minimal directory structure should look like this:

lizard/etc
lizard/rules
lizard/bin
lizard/bin/finish.sh
lizard/bin/start.sh
lizard/bin/instpkg

3.2 The Rules File

The rules file is the heart of the Lizard installer. It controls what actions should be taken for what machines. As a start only the following syntax is supported:

<rule_keyword> <rule_value> <start_script> <profile> <XF86Config> <pkgs.sel> <finish_script> 

The <rule_keyword> <rule_value> pair is used to match the rule to the client machine. At the moment there are two rule selectors:

network <numeric_net> will match any client who's IP is in the <numeric_net> network.

hostname <ip_addr> will match any client with that IP address. This will override the network selector, so you can handle special machines separately while retaining a default configuration for the rest.

<start_script>, <profile>, <XF86Config>, <pkgs.sel>, <finish_script> specify a preinstall script, install profile, X configuration, package selection and postinstall script respectively. These scripts are searched in the Lizard directory in the following order of globbing:

<name>.<ip_addr>, <name>.<numeric_net>, <name>

NB: this globbing essentially duplicates what can already be done by the selectors.

Sample Rules File

hostname 10.10.10.10 bin/start.sh etc/profile etc/XF86Config etc/pkgs.sel bin/finish_script

3.3 Creating a Profile

To create an install profile:

  1. Install a machine with Lizard
  2. Execute mklizard after the machine has been configured.
The mklizard script creates the file /tmp/lizard.tgz which contains:

etc/
etc/pkgs.sel.<your_ip>
etc/XF86Config.<your_ip>
etc/profile.<your_ip>
etc/sfdisk.dump.<your_ip>
etc/fstab.<your_ip>
etc/lilo.conf.<your_ip>
etc/passwd.<your_ip>
etc/shadow.<your_ip>

Untar it to your Lizard directory and create appropriate rules. The same profile can be used for different machines, as long as the XF86Config applies to all of them and the drives and partitions are the same. The network information will be overridden by what the clients get via DHCP.

3.4 Installing a Client

Once you have completed all of the above steps, installing a client with Lizard is easy. Simply type install lizard=<path> at the boot prompt, where <path> is either auto if you have set up Lizard in the default location or the NFS path to your Lizard directory in IP notation. (see Setting up the Install Server for details)

The client will then get it's network configuration by querying DHCP and select the appropriate rule.


Next Previous Contents