To use templatized installation, enter the installation settings for each remote machine in a template file called template.inf. You can then use the template to install the web server on multiple machines from a single session on your local machine.
The template.inf file is found in the same directory as the setup program.
To run templatized installation, perform the following steps:
In the /.rhosts directory of your local machine, create an entry for each remote machine where you will install the web server using the format
remote_machine_name username
For example, if the remote machine is host1 on the domain do gs, and you are logged in as root, enter the following information:
host1.docs.com root
In the /etc/hosts.equiv directory of your local machine, create an entry for each remote machine where you will install the web server using the format
remote_machine_name
For example, if the remote machine name is host1 on the domain docs, enter the following information:
host1.docs.com
In the /.rhosts directory of each remote machine where you will install the web server, create an entry for your local machine using the format
local_machine_name username
For example, if the local machine name is chewbacca on the domain docs and you are logged in as root, enter the following information:
chewbacca.docs.com root
In the /etc/hosts.equiv directory of each remote machine where you will install the web server, create an entry for your local machine using the format
local_machine_name
For example, if the local machine name is chewbacca on the domain docs, enter the following information:
chewbacca.docs.com
Create a setup directory on your local machine with a link to server root
ln -s server_root/ setup-directory
Change to the directory where setup resides.
For the local machine share and export the directory containing the setup program via NFS:
- For the remote machine, create a setup directory and mount via NFS mount -F nfs <local machine name >: setup-directory setup-directory
- Finally make sure that the SetupLocation is accessible from the remote machine.
Remote access is only on Solaris machines. Remote access is different from platform to platform.
Open the template.inf file.
Enter the installation setting:
HostNames: the name of the host where the web server will be installed, separated by commas. For example:
host1,host2,host3
Components: the components to install, separated by commas. For example:
webcore,jdk,cleanup
SetUpLocation: the location of the setup program used by the template file.
For each host, enter the following:
[hostname]: the name of the machine where the web server will be installed by the template.
InstallType: the type of installation to run: express [1], typical [2], or custom [3].
SuiteSpotUserID: The user ID used when running the default instance of the Sun Java System Web Server.
SuiteSpotGroup: The group the user running the default instance of the Sun Java System Web Server belongs to.
ServerRoot: the directory where your server will be installed. For example:
/opt/SUNWwbsvr/
HttpDocRoot: The document root of the Sun Java System Web Server instance. For example:
/opt/SUNWwbsvr/docs
For the core server, enter the following:
AdminPort: Enter the port number for the Administration Server.
HttpPort: The port of the default Sun Java System Web Server instance.
AdminSysUser: The user id used when running the Administration Server. The user should have access permissions to use the directory Server to perform user and group management tasks. For example, root.
AdminName: The user name used to access the administration screens of the Administration Server. For example: admin.
AdminPassword: The password used to access the administration screen of the Administration Server. For example: admin.
Run the installation wrapper by typing the following command at the command prompt:
path_to_perl_executable/perl installWrapper -f template.inf
The installWrapper is a Perl script.
The following is an example of the template.inf file:
[ MachineName] HostNames = draco.sun Components=webcore,snmp,cleanup SetUpLocation=/Sun/WebServer/P20030814.1 [iws-intern3] InstallType= 2 SuiteSpotUserID= nobody SuitespotGroup= nobody SecurityCheck= False RequireDomain= False InstallWhich= 1 ServerRoot=/Sun/WebServer/tmpl_inst/SUNWwbsvr HttpDocRoot=/Sun/WebServer/tmpl_inst/SUNWwbsvr/docs JDK_DIR=/usr/j2se [core] Upgrade= False Reinstall= False AdminPort= 20000 HttpPort= 20001 AdminSysUser= root AdminName= admin AdminPassword= admin UgLdapUse= No CompVersions= 2:2:1:2:2:1:1:2: [cleanup] Archive= cleanup.zip |