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.
- Download the TIB_ope_6.0.0.zip
- 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
You can install these packages from the requirements.txt
present under the $OPE_HOME/config-automation
directory.
- For PostgreSQL, you must create the tablespace location manually before executing these scripts.
- For Docker setup, the user must be part of the Docker group.
- Procedure
- Set all the configurations in the
$OPE_HOME/config-automation/properties/config.properties file. See the
$OPE_HOME/config-automation
/README.md
file for more information. - 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 the microservices individually, run the following scripts in the given sequence:
-
To read config properties, run the
$OPE_HOME/config-automation/src/config_reader.py
script. - To set the environment variables, run the $OPE_HOME/config-automation/src/environment_variables.py script.
- To create the EMS channel, run the $OPE_HOME/config-automation/ems/ems_setup.py script.
- To set up the database, run the $OPE_HOME/config-automation/oracle/oracle_setup.py script for Oracle or $OPE_HOME/config-automation/postgres/postgres_setup.py script for PostgreSQL as per your requirement.
- To create Docker images, run the $OPE_HOME/config-automation/docker/docker_setup.py script.
- To create the default tenant users and to start the authorization service, run the
$OPE_HOME/config-automation/auth_server/auth_server_setup.py
script. - To seed and start Configurator, run the
$OPE_HOME/config-automation/configurator/configurator_setup.py
script.
-