8.3 Running the JBossPostgreSQL Utility in Silent or Console Mode

You can run the JBossPostgreSQL utility in console or silent mode. Before running the utility in silent mode, you need to edit the properties file for the JBossPostgreSQL utility. Once you’ve edited the properties file, launch it with this command:

JBossPostgreSQL -i silent -f <path to the properties file> 

For example:

JBossPostgreSQL -i silent -f /home/jdoe/idm-install-files/silent.properties 

Here are the properties for a JBossPostgreSQL silent install:

Table 8-2 JBossPostgreSQL Configuration Properties

Property

Description

USER_INSTALL_DIR

Path to where you want JBoss and the JRE installed.

Required if installing JBoss; otherwise, leave blank.

NOVL_DB_NAME

Name of the database to use. The default database name is idmuserappdb.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

NOVL_DB_PASSWORD

Database root password.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

NOVL_DB_PASSWORD_CONFIRM

Confirms the database root password.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

CHOSEN_INSTALL_FEATURE_LIST

Install sets to install.

Required. You can choose both JBoss and PostgreSQL, or install just one of these products.

Examples:

CHOSEN_INSTALL_FEATURE_LIST=JBoss, PostgreSQL
CHOSEN_INSTALL_FEATURE_LIST=JBoss,""

USER_MAGIC_FOLDER_1

Name of the installation directory for PostgreSQL.

Required if installing PostgreSQL. This property will be ignored if CHOSEN_INSTALL_FEATURE_LIST does not include PostgreSQL.

START_DB

Indicates whether the installer will start the database at installation time. Assign the value Start if you want the installer to start the database; otherwise, leave this property blank.

Optional.

JBossPostgreSQL installer might display a pop-up in silent mode on Windows PostgreSQL requires several Microsoft VC++ libraries when running on Windows. If these libraries are not installed on the Windows server, the PostgreSQL installer automatically installs them. When you run the JBossPostgreSQL installer in silent mode on Windows, a pop-up window appears for about three seconds while these libraries are being installed, if those libraries are not already installed on the machine.

8.3.1 Setting Passwords in the Environment for a Silent Install

If you do not want to specify the passwords in the silent.properties file, you can set the passwords in the environment instead. In this case, the silent installer will read the passwords from the environment, rather than from the silent.properties file. This can provide some additional security.

The following passwords need to be set for the User Application Installer:

  • NOVL_DB_PASSWORD

  • NOVL_DB_USER_PASSWORD

To set a password on Linux, use the export command, as shown in the following example:

export NOVL_DB_USER_PASSWORD=myPassWord

To set a password on Windows, use the set command, as shown in the following example:

set NOVL_DB_USER_PASSWORD=myPassWord