Automating postinstallation configurations
This section describes the procedure of automating postinstallation configurations. Instead of performing each configuration one by one, you can now automate the task. To update the bare minimum properties that are already configured in the property file (config.properties
) of config-automation, the authorization and configurator services are started through this automation procedure. Once these two services are started, you can choose to start the other services.
Prerequisites
-
Download TIBCO(R) Offer and Price Engine 5.1.0_HF-002
-
Install Python 3.9.X or later on your machine and import the following Python packages or modules:
-
Requests
-
configobj
-
paramiko
-
scp
-
xmltodict
-
cx_Oracle
-
psycopg2
-
Procedure
-
Set all the configurations in the
$OPE_HOME/config-automation/properties/config.properties
file. -
To automate the postinstallation configurations for all the microservices at once, run the
$OPE_HOME/config-automation/src/main.py
script. -
To automate the postinstallation configurations for all the microservices individually, run the following scripts in the given sequence:
- To create the EMS channel, run the
$OPE_HOME/config-automation/ems/ems_setup.py
script. - To set up the database, run the appropriate setup files present in
$OPE_HOME/config-automation/oracle and $OPE_HOME/config-automation/postgres
folder. - To set the environment variables, run the
$OPE_HOME/config-automation/src/environment_variables.py
script. - To create Docker images, run the
$OPE_HOME/configautomation/docker/docker_setup.py
script. - To create the default tenant users and to start authorization service, run the
$OPE_HOME/config-automation/auth_server/auth_server_setup.py
script. - To seed and start Configurator, run the
$OPE_HOME/configautomation/configurator/configurator_setup.py
script.
- To create the EMS channel, run the