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
To customize the file as per your configuration, follow steps from section step 3 - Configure Installation path.
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
Here are the examples of XML file after all modifications.
Installation with MySQL Database : Installer Example file
Upgrade : Migrator example file
3 - Configure Installation Path
Find
com.izforge.izpack.panels.TargetPaneland 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:
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
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".
Find @COMPANY_NAME@ parameter in the OpsHubAutoInstall.xml file and replace with your company name.
Find @DB_TYPE@ and replace database type as below:
Replace with "MySQL" for configuring MySQL database. Refer to MySQL Database configuration for detailed steps.
Replace with "MS SQL Server" for configuring MS SQL database. Refer to MSSQL Database configuration for detailed steps.
Replace with "ORACLE" for configuring Oracle database. Refer to Oracle Database configuration for detailed steps.
Replace with "HSQLDB" for configuring HSQL database. Refer to HSQL Database configuration for detailed steps.
Replace with "PostgreSQL" for configuring PostgreSQL database. Refer to PostgreSQL Database configuration for detailed steps.
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
Find panel with id "UserInputPanel.mysqldb".
Remove comment from parameters.
Go to Common Database configuration parameters and follow the steps.
Common Database Configuration Parameters
Find and replace @DB_HOST@ with the host name of your database.
Find and replace @DB_PORT@ with the port of your database.
Find and replace @DB_USER@ with the username of your database.
Find and replace @DB_PASSWORD@ with the password of your database.
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.
For MySQL, refer section Installation with MySQL Server
For MS SQL, refer section Installation with MSSQL Server
For ORACLE, refer section Installation with Oracle
For HSQL, no external connector jar file is required.
For PostgreSQL, refer section Installation with PostgreSQL
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
Find panel with id "UserInputPanel.mssqlAuthModeOnWindows".
Remove comment from parameters.
Find @DB_AUTH_TYPE@ in the same panel.
Replace variable value with "Windows Authentication" if you are configuring MSSQL with Windows Authentication.
Find panel with id "UserInputPanel.mssqldbOnWindowsAuth".
Remove comment from parameters.
Go to Common Database configuration parameters and follow the steps to replace @DB_HOST@, @DB_PORT@, @DB_CONNECTOR_JAR_PATH@ with your input.
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
Find panel with id "UserInputPanel.mssqlAuthModeOnWindows".
Remove comment from parameters.
Find @DB_AUTH_TYPE@ in the same panel.
Replace variable value with "SQL Authentication" if you are configuring MSSQL with SQL Authentication.
Find panel with id "UserInputPanel.mssqldbOnSQLAuth".
Go to Common Database configuration parameters and follow the steps.
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
Find panel with id "UserInputPanel.mssqlAuthModeOnLinux".
Remove comment from parameters.
Find @DB_AUTH_TYPE@ in the same panel.
Replace variable value with "SQL Authentication" if you are configuring MSSQL with SQL Authentication.
Find panel with id "UserInputPanel.mssqldbOnSQLAuth".
Go to Common Database configuration parameters and follow the steps.
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
Remove comment from panel id "UserInputPanel.oracleDatabaseType".
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.
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.
Now, remove comment from panel id "UserInputPanel.oracledb".
Find and replace @ORC_INSTANCE@ with oracle database instance name from the same panel.
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
Find panel with id "UserInputPanel.postgresqldb".
Remove comment from parameters.
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
Remove comment from panel id "UserInputPanel.advancedOptionsHSQL" and add comment in panel id "UserInputPanel.advancedOptions".
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.
Find @ADV_ISSERVICE@ and replace with 1 if you want to configure OpsHub Integration Manager as a service else replace it with 0.
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
Remove comment from id "UserInputPanel.advancedOptions".
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.
Find @ADV_ISDBFLAG@ and replace with 1 if you will create OpsHub Integration Manager database manually else set it as 0.
Find @ADV_OPSHUBDBMAME@ and replace it with your OpsHub Integration Manager database name else remove that entry from the panel.
Find @ADV_REPORT_DBNAME@ and replace it with your OpsHub Integration Manager report database name else remove that entry from the panel.
Find @ADV_ISSERVICE@ and replace with 1 if you want to configure OpsHub Integration Manager as a service else replace it with 0.
Find @ADV_SEC_CONFIG@ and replace with 1 if you want to configure advance Security configuration else replace it with 0.
8 - HTTPS configuration
Make sure you have configure @ADV_HTTP_CONFIG@ with "HTTPS" value.
Find panel with id "UserInputPanel.certInfo" remove comment from parameters.
Find @CERT_SERVER_HOST@ and replace it with IP Address/hostname of Machine on which you install OpsHub Integration Manager.
Find @CERT_COMP_UNIT@ and replace it with your Organization's Unit like Manufacturing, Sales etc.
Find @CERT_COMP_NAME@ and replace it with your Organization Name.
Find @CERT_COMP_CITY@ and replace it with your Organization's City.
Find @CERT_COMP_STATE@ and replace it with your Organization's State or Province.
Find @CERT_COMP_COUNTRY@ and replace it with your Organization's Country.
Find @CERT_VALIDITY@ and replace it with number of days for which the certificate should be considered valid.
9 - Advance Security Configuration
Make sure you have configure ADV_SEC_CONFIG with "1" value in step 5.
Find panel with id "UserInputPanel.securityConfig" remove comment from parameters.
Find @SEC_KEYMODE@ replace with "newSecretKey".
Find @SEC_KEY_PATH@ and replace with your secret key installation path.
Find @SEC_ALGO@ and replace with either "AES-256" or "DES-56 or "DESede-168" as per your need.
Note do not copy your secret file once its generated after OpsHub Integration Manager installation process.
Last updated

