Installing the server in silent mode
In silent mode, you specify the installation properties in a text file and then run the server installation without command-line prompts.
Before you begin
- If installing in a production environment, make sure that you have a license server with available licenses. See Managing Licenses for more information.
- Ensure that the system that you are installing the server on meets the system requirements. Contact HCL support for more information.
- Ensure that a supported version of a Java™ Runtime Environment (JRE) or Java™
Development Kit (JDK) is installed on the computer on which you are installing HCL DevOps Deploy (Deploy).Important: The Deploy server, agent, and relays require a Java™ Runtime Environment (JRE) or Java™ Development Kit (JDK) version 11.Important:
For best results, download and use the latest available version of Java Runtime Environment (JRE) for the Deploy server, agents, and relays. Be sure to set the JAVA_HOME system variable to the location of the JRE. If you are updating or changing the JRE to the latest version, see Changing or updating the JRE of servers, Updating the JRE location for agents, and Updating the JRE location for agent relays for instructions.
- If you are installing the server in a production environment, install and configure the server database before you install the server. See Installing the server database.
- Ensure that you have placed the JAR file for the database driver in the lib/ext folder of the installation program.
- If you are installing the server on AIX® platform, the unzip program is required.
- Make sure that your networks and firewalls allow communication on the required ports. See Firewall and communication configuration.
- To install and run the server on Linux™ as a non-root user, create a user to use when you install and run the server. Also, ensure that the user has read and write permission to the folder to which you are installing the server.
- Ensure that there is no limit on the maximum memory size and virtual memory size.
For example, on most Linux™ systems, you can run the
ulimit -mandulimit -vcommands and ensure that both return the valueunlimited. To find out how to remove the limit on the maximum memory size and virtual memory size, see the documentation for the operating system.
- Configure the high-availability cluster; see Setting up high-availability clusters.
- Ensure that the system on which you are installing the new server has a connection to the cluster network storage and that the system can connect to the database that the cluster is using.
- Each server in the cluster must run the same version of Deploy.
About this task
Procedure
-
Download and extract the installation files for Deploy.
You can download the files from the My HCLSoftware (MHS) portal.
-
Customize the installation by specifying the properties in the server installation properties file
If you do not specify a property, the default value is used. These properties are copied to the installed.properties file of the completed installation.
If you specify a path in a property on a Windows™ system, you must escape any backslash (\) characters that are in the path. For example, to set the install.server.dir property to C:\devops-deploy, specify install.server.dir=C\:\\devops-deploy. See java.util Class Properties.
The file looks similar to the following example:Note: The server.initial.password needs to be specified or install will fail.component.name=DevOps Deploy component.directory=devops-deploy/server version=8.1.0.0.123456 nonInteractive=true install.server.dir=/opt/devops-deploy/server install.java.home=/opt/java/ibm-java-i386-80 install.server.web.always.secure=Y install.server.web.host=myserver.example.com install.server.web.https.port=8443 install.server.web.ip=0.0.0.0 install.server.web.port=8080 database.type=db2 hibernate.connection.username=deploy hibernate.connection.password=password hibernate.connection.url=jdbc:db2://host-or-ip:50000/data license.server.url=27000@RCLServer.example.com server.initial.password=admin - Save the file.
-
Specify the
-silentflag when running the installer. Add the flag to the installation file with the commandinstall-server.bat -silenton Windows™ or the command./install-server.sh -silenton Linux™.These scripts behave identically and take combinations of the following arguments:-silent -install-dir /path/to/install -java-home/path/to/jdkThey each correspond to properties ininstall.properties, and if specified they will override them. Corresponding properties are as follows:Table 1. Argument Property Note -silent nonInteractive=true Installs without interactive command-line prompts. You must specify the -install-dir path must and also, specify the non-default configuration in install.properties file. Note:Running with-silentand without an -install-dir results in an error.-install-dir /path/to/dir install.server.dir=/path/to/dir The path to the install directory. The install directory can be an existing server directory (upgrade) or a new path (fresh installation). Note:Setting aninstall-dirthat already has an existing server results in a server upgrade.-java-home /path/to/jdk install.java.home=/path/to/jdk The path to the JDK version is to be used for the server. Note:Running the command with the-java-homefor a server upgrade results in an error.
Results
If you install the server as a node in high-availability cluster, the installer loads the existing encryption keystore that is in the shared storage folder by using the default settings. If the default password is incorrect, you are prompted for the password. If after three attempts you do not enter the correct password, the installation process stops. If the keystore has more than one alias, you are prompted to specify an alias.
What to do next
- To specify a default agent, click and under General Settings, clear the Use Agent Tag For Integration check box. Then, select an agent in the Agent for Version Imports list. Then, at the bottom of the page, click Save.
- To specify a default agent tag, click and under General Settings, clear the Use Agent Tag For Integration check box. Then, select an agent tag in the Agent Tag for version imports list. Then, at the bottom of the page, click Save. If no tags are listed, add a tag to one or more agents on the server.
If you see "Out of memory" errors, increase the amount of memory that is available to the Deploy service. See Increasing the amount of memory that is available to the server.