7.3.8 JumpStart
client_name install_config=server:/export/install_info -Solaris 1.X
-or-
* install_config=server:/export/install_info -Solaris 2.X, which takes wild card entries.
With add_install_client use the -c option to automatically setup the bootparam entry when you set up the client:
# ./add_install_client -s install_server:/cdrom -c config_server:/dir sunclient sun4
where /dir on config_server contains the auto-install configuration information.
There's a sample directory on the Solaris 2.X CDROM, auto_install_sample, that you can use as an example when setting up your configuration file. There is also a sample rules file there. The boot program provides the auto-install program with information about the machine being booted. That, in conjunction with the information provided to the server for this client, provides the auto-install program with sufficient information to determine hostname, host and network addresses, NIS(+) domainname, machine model and architecture type, kernel architecture, memory installed, disk size, and hostid for the client. The rules file then looks for sets of information defined by the Table below. Auto-install will then execute a script before the installation, begin, setup a profile based on the class, and execute a script when done, finish.
Casper Dik has made some good examples of these scripts available on the Internet at ftp.fwi.uva.nl:/pub/solaris/auto_install. .
Comparison | Match Type | Expected Data Type |
---|---|---|
hostname | exact | text string |
hostaddress | exact | dotted decimal address |
network | exact | dotted decimal address |
domainname | exact | NIS(+) domain - text string |
arch | exact | machine architecture - text string |
karch | exact | kernel architecture - text string |
model | exact | machine model, e.g.: 4_75 |
memsize | range | memory size in MB, e.g.: 16-64 |
disksize | disk_name range | specific disk size in MB, e.g.: c0t3d0 180-500 |
installed | disk_slice release | specific disk slice and OS release, e.g.: c0t3d0s0 solaris_2.5 |
totaldisk | range | total disk size in MB, e.g. 180-500 |
hostid | exact | 8 digit hex number, e.g.: 80442a6b |
any | ignored | always matches |
Note, that the backslash, \, at the end of a line of a rules line indicates that the line is continued on the next line. Lines beginning with # are comments.
So if your rules file has entries of the form (modified from an example by Casper Dik):
# key value begin class finish
# SPARCstation LX
karch sun4m &&\
model 'SUNW, SPARCstation-LX' &&\
memsize 16-64 &&\
disksize rootdisk 180-550 scripts/start packages/default scripts/finish
# SPARCstations 1, 1+, 2, ELC, SLC, IPC, IPX
karch sun4c &&\
memsize 16-64 &&\
totaldisk 180-250 scripts/start packages/no_var scripts/finish
# Anything not matched - don't install
any - scripts/no_match - -
Where the lines are interpreted as:
An example of a class configuration file:
filesys any 24 /
filesys any 80 /usr
filesys any 43 /var nosuid
filesys any 0 /home
filesys any 0 /opt
filesys any free swap
cluster SUNWCreq
package SUNWvolr delete
package SUNWvolu delete
cluster SUNWClp
package SUNWdoc
Where these lines are interpreted as:
Additional fields follow the format: