Prepare XML for Auto Installation & Upgradation for Linux-Based Deployment

Here is the process of getting and customizing OpsHubAutoInstall/OpsHubAutoMigrator XML file.

1 - Download XML file

Below are the sample templates for OpsHubAutoInstall/OpsHubAutoMigrator XML. You need to customize the template downloaded as described below for configuring your own file for installing or migrating OpsHub Integration Manager.

  • If you are installing OpsHub Integration Manager then download file here

  • If you are upgrading the existing OpsHub Integration Manager then download file OpsHubAutoMigrator.xml.

    • To customize the file as per your configuration, follow steps step 3 and step 4.

Note: Refer to step 2 for example of an already customized file for installation with MySQL database.

Note: It is always recommended to have a secured environment for OIM installation. The purpose of Silent installation is to have no manual intervention, and so the user needs to have a secured VM installation as the autoinstall.xml file contains the password in plain text.

2 - Customized example of xml file with MySQL database

3 - Configure Installation Path

  • Find com.izforge.izpack.panels.TargetPanel and replace the input mentioned below:

    • Replace @INSTALLATION_PATH@ with actual installation directory which you mentioned in Registration_Input.properties during Silent Registration.

4 - Configure Registration Type & Verification Code

For the next panel:

<com.izforge.izpack.panels.UserInputPanel id="UserInputPanel.RegistrationTypeSelection">

There are two possible Registration Types, and the required input for the verification code will differ based on your choice. We have listed both scenarios below, along with the inputs you need to provide:

  1. Existing Registration (during installation) By default, OpsHub uses Existing Registration as the registration type. If you want to continue with this option, you need to provide the following inputs:

<com.izforge.izpack.panels.UserInputPanel id="UserInputPanel.RegistrationTypeSelection">
<userInput> <entry key="RegistrationType" value="ExistingRegistration"/>
</userInput> </com.izforge.izpack.panels.UserInputPanel>

<com.izforge.izpack.panels.UserInputPanel id="UserInputPanel.EmailIdVerificationForExistingCode">
<userInput> <entry key="VerificationCode" value="@VERIFICATION_CODE@"/>
</userInput> </com.izforge.izpack.panels.UserInputPanel>

Note: Replace @VERIFICATION_CODE@ with the verification code that you received on your registered business email address

  1. Post Registration (after installation) For Post-Installation Registration, set the input value of "RegistrationType" to PostInstallRegistration.

 <com.izforge.izpack.panels.UserInputPanel id="UserInputPanel.RegistrationTypeSelection">
<userInput> <entry key="RegistrationType" value="PostInstallRegistration"/> </userInput>
</com.izforge.izpack.panels.UserInputPanel>

Note: Complete the installation first, and after the server starts, you will be prompted to fill out the registration form. You will receive the verification code only after completing the registration form.

5 - Configure Base Parameter

Find all parameters below under panel id="UserInputPanel.installationflow".

  1. Find @COMPANY_NAME@ parameter in the OpsHubAutoInstall.xml file and replace with your company name.

  2. Find @DB_TYPE@ and replace database type as below:

  3. Find @ADVANCE_CONFIG_FLAG@ and replace with either "1" if you want to configure advance parameter or "0" if you don't want to configure advance parameters.

    Note: Advance configuration allows to change default database name, Http/Https configuration, Advanced Security Options.

    • If you are setting above flag as "0" then advance configuration parameters will be set with default values.

6 - Database configuration

MySQL Database configuration

  1. Find panel with id "UserInputPanel.mysqldb".

  2. Remove comment from parameters.

  3. Go to Common Database configuration parameters and follow the steps.

Common Database Configuration Parameters

  1. Find and replace @DB_HOST@ with the host name of your database.

  2. Find and replace @DB_PORT@ with the port of your database.

  3. Find and replace @DB_USER@ with the username of your database.

  4. Find and replace @DB_PASSWORD@ with the password of your database.

  5. Find and replace @DB_CONNECTOR_JAR_PATH@ with the jar file path of your database connector. Find the jar file name according to the database you are using.

    Note: The user who is running the installer should have 'Read' access to the jar file of your database connector.

MSSQL Database configuration

Installation on Windows

With Windows authentication

  1. Find panel with id "UserInputPanel.mssqlAuthModeOnWindows".

  2. Remove comment from parameters.

  3. Find @DB_AUTH_TYPE@ in the same panel.

  4. Replace variable value with "Windows Authentication" if you are configuring MSSQL with Windows Authentication.

  5. Find panel with id "UserInputPanel.mssqldbOnWindowsAuth".

  6. Remove comment from parameters.

  7. Go to Common Database configuration parameters and follow the steps to replace @DB_HOST@, @DB_PORT@, @DB_CONNECTOR_JAR_PATH@ with your input.

  8. Find and replace @DB_NAME_TO_TEST_CONNECT@ with the database name to which database user has access to.

    Note: Go to MS SQL/Azure SQL Server Database Name Input to find the usage.

With SQL authentication

  1. Find panel with id "UserInputPanel.mssqlAuthModeOnWindows".

  2. Remove comment from parameters.

  3. Find @DB_AUTH_TYPE@ in the same panel.

  4. Replace variable value with "SQL Authentication" if you are configuring MSSQL with SQL Authentication.

  5. Find panel with id "UserInputPanel.mssqldbOnSQLAuth".

  6. Go to Common Database configuration parameters and follow the steps.

  7. Find and replace @DB_NAME_TO_TEST_CONNECT@ with the database name to which database user has access to.

    Note: Go to MS SQL/Azure SQL Server Database Name Input to find the usage.

Installation on Linux

  1. Find panel with id "UserInputPanel.mssqlAuthModeOnLinux".

  2. Remove comment from parameters.

  3. Find @DB_AUTH_TYPE@ in the same panel.

  4. Replace variable value with "SQL Authentication" if you are configuring MSSQL with SQL Authentication.

  5. Find panel with id "UserInputPanel.mssqldbOnSQLAuth".

  6. Go to Common Database configuration parameters and follow the steps.

  7. Find and replace @DB_NAME_TO_TEST_CONNECT@ with the database name to which database user has access to.

    Note: Go to MS SQL/Azure SQL Server Database Name Input to find the usage.

Oracle Database configuration

  1. Remove comment from panel id "UserInputPanel.oracleDatabaseType".

  2. Find and replace @ORACLE_DB_TYPE@ from the same panel with CDB or Non CDB depending upon your oracle database type. For reference follow sectionInstallation with Oracle.

  3. Find and replace @ORACLE_CONNECTION_TYPE@ from the same panel with Service or SID depending upon your oracle configuration. For reference follow section Installation with Oracle.

  4. Now, remove comment from panel id "UserInputPanel.oracledb".

  5. Find and replace @ORC_INSTANCE@ with oracle database instance name from the same panel.

  6. Go to Common Database configuration parameters and follow the steps.

HSQL Database configuration

For HSQL you can move to next step for further configuration.

PostgreSQL Database configuration

  1. Find panel with id "UserInputPanel.postgresqldb".

  2. Remove comment from parameters.

  3. Go to Common Database configuration parameters and follow the steps.

7 - Enable Advance Configuration

If you are doing advance configuration then only follow the below step.

  • Make sure you have @ADVANCE_CONFIG_FLAG@ flag is 1 as specified here.

Enabling advance configuration with HSQL, then follow below steps

  1. Remove comment from panel id "UserInputPanel.advancedOptionsHSQL" and add comment in panel id "UserInputPanel.advancedOptions".

  2. Find @ADV_HTTP_CONFIG@ and replace it with "HTTP" if you want to configure OpsHub Integration Manager with HTTP or replace it with "HTTPS" if you want to configure OpsHub Integration Manager with https.

    • Make sure you are following step no 8 if you configure OpsHub Integration Manager with https.

  3. Find @ADV_ISSERVICE@ and replace with 1 if you want to configure OpsHub Integration Manager as a service else replace it with 0.

  4. Find @ADV_SEC_CONFIG@ and replace with 1 if you want to configure advance Security configuration else replace it with 0.

Enabling advance configuration other than HSQL, then follow below steps

  1. Remove comment from id "UserInputPanel.advancedOptions".

  2. Find @ADV_HTTP_CONFIG@ and replace it with "HTTP" if you want to configure OpsHub Integration Manager with HTTP or replace it with "HTTPS" if you want to configure OpsHub Integration Manager with https.

    • Make sure you are following step no 8 if you configure OpsHub Integration Manager with https.

  3. Find @ADV_ISDBFLAG@ and replace with 1 if you will create OpsHub Integration Manager database manually else set it as 0.

  4. Find @ADV_OPSHUBDBMAME@ and replace it with your OpsHub Integration Manager database name else remove that entry from the panel.

  5. Find @ADV_REPORT_DBNAME@ and replace it with your OpsHub Integration Manager report database name else remove that entry from the panel.

  6. Find @ADV_ISSERVICE@ and replace with 1 if you want to configure OpsHub Integration Manager as a service else replace it with 0.

  7. Find @ADV_SEC_CONFIG@ and replace with 1 if you want to configure advance Security configuration else replace it with 0.

8 - HTTPS configuration

  1. Make sure you have configure @ADV_HTTP_CONFIG@ with "HTTPS" value.

  2. Find panel with id "UserInputPanel.certInfo" remove comment from parameters.

  3. Find @CERT_SERVER_HOST@ and replace it with IP Address/hostname of Machine on which you install OpsHub Integration Manager.

  4. Find @CERT_COMP_UNIT@ and replace it with your Organization's Unit like Manufacturing, Sales etc.

  5. Find @CERT_COMP_NAME@ and replace it with your Organization Name.

  6. Find @CERT_COMP_CITY@ and replace it with your Organization's City.

  7. Find @CERT_COMP_STATE@ and replace it with your Organization's State or Province.

  8. Find @CERT_COMP_COUNTRY@ and replace it with your Organization's Country.

  9. Find @CERT_VALIDITY@ and replace it with number of days for which the certificate should be considered valid.

9 - Advance Security Configuration

  1. Make sure you have configure ADV_SEC_CONFIG with "1" value in step 5.

  2. Find panel with id "UserInputPanel.securityConfig" remove comment from parameters.

  3. Find @SEC_KEYMODE@ replace with "newSecretKey".

  4. Find @SEC_KEY_PATH@ and replace with your secret key installation path.

  5. Find @SEC_ALGO@ and replace with either "AES-256" or "DES-56 or "DESede-168" as per your need.

  6. Note do not copy your secret file once its generated after OpsHub Integration Manager installation process.

Last updated