Installation with Ansible

Introduction

This manual describes the GBDS installation procedures.

Preparation for Installation

This section covers the essential steps required to install GBDS.

circle-exclamation

To fully install GBDS, you will need:

  • Root permission on the server

  • GBDS tools package link

  • Ambari Ansible package link

  • OpenCV package link

  • GBDS .rpm and .sql files

  • .war and .sql files of the Griaule Biometric Suite software (optional)

circle-info

If you do not have the repository links or the files, contact the Griaule support team.

Next, you should follow the steps presented below. These steps will be fully described in their sections.

  1. Log in to the server as root

circle-check

If the hostname is modified, reboot the machine before proceeding.

GBDS Tools

GBDS Tools is a compilation of bash scripts with specific features and dynamic usability. The main goal of the tool is to facilitate, improve and speed up the creation, configuration and management of environment applications.

All scripts use a single configuration file called properties.ini and a single list file called cluster.list, which must contain all the information of the server group.

circle-check

Installing GBDS Tools

You have two methods to choose from to install GBDS Tools, one if you have the Griaule repository already configured on your server and another if you do not. These are explained below.

circle-info

Choose only one alternative. After finishing one, there is no need to perform the other.

Repository already configured

If you have already configured the Griaule repository on your server, you can complete all installations with a single command.

triangle-exclamation

Repository not configured

If you do not have the repository configured, you must ensure the tool works properly. To do this, you MUST place the tool in the directory /opt/griaule.

Start by creating the directory:

Enter the created directory:

Then, download the GBDS tools package:

circle-info

If you do not have the link, contact the Griaule Support Team.

circle-check

Then, install it:

And create a symbolic link:

After a successful installation, proceed to the configuration section.

Configuring GBDS Tools

The configuration files used by GBDS Tools are in the directory: /opt/griaule/tools/shared. In this directory, there are three files that must be edited:

  • properties.ini - main configuration file

  • cluster.list - main hostnames list file

  • ip.list- secondary hostnames file

The files are pre-configured with default values for most parameters. Check if anything needs to be changed to meet the needs of your environment.

circle-exclamation
circle-check
circle-check
circle-check

Running the automatic environment configuration

The automatic environment configuration, called auto_envsetup.sh, is the automation to configure the environment. You need to run this script when building a new server from scratch.

To run the script, execute the following command:

Then, it is recommended to update all packages, if possible:

Installing the RDB

To use GBDS, you will need a relational database installed and configured. You can choose between MySQL Server or NDB Cluster.

circle-exclamation

MySQL Server

circle-exclamation

To install MySQL Server, run:

Then, proceed to Configuring the RDB password.

NDB Cluster

circle-exclamation

Or, if you choose to install the NDB Cluster, run:

Then, proceed to Configuring the RDB password.

Configuring the RDB password

After installation, try to log into MySQL by running the command:

And entering the password configured in the file properties.ini in dbuspw, as mentioned in the previous step.

If it is possible to log in, the installation and password configuration were successful and you can proceed to Configuring MySQL.


If it is not possible to log in and you see the following error:

You will need to change the password manually. To do this, use the following command to get the temporary password created during installation:

Copy the temporary password shown.

Then, change the password using the following command:

circle-info

Make sure to replace <desired_password> with the desired password. Keep the quotes.

When prompted, enter the temporary password.

Then, try to log into MySQL again using the new password.

If it is possible to log in, the installation and password configuration were successful and you can proceed to Configuring MySQL.

Configuring MySQL

Finally, configure the database for your environment.

The configuration file is located at: /etc/my.cnf.

circle-exclamation

After making the necessary changes, apply them by restarting the service:

Installing Ambari

To install Ambari via Ansible, it is necessary to access the Griaule repository.

circle-exclamation
circle-info

The installation requires an internet connection and may take 45 minutes to complete without errors. Before installing, ensure your connection is stable.

To start the Ambari installation, go to the Ansible directory:

Then, download the package:

circle-info

If you do not have the link, contact the Griaule Support Team.

Next, extract the files into Ansible's main directory, /etc/ansible, with the following command:

circle-check

Enter the extracted directory:

circle-check

Then, run the installation script:

Answer the installation questions and proceed until finished.

circle-exclamation

Installing GBDS

To install GBDS, you will need:

  • GBDS Cluster .rpm

  • GBDS Distribution .rpm

  • GBDS RDB dump script .sql

  • OpenCV package link

Start by moving the two .rpm files to the directory /opt/griaule/tools/deploy_application/files.

The file .sql the RDB dump script must be saved in another directory.

circle-exclamation

Then, run the following command to install GBDS:

circle-info

After trying to run the script above, if you receive the error:

Enter the files:

And download the OpenCV package:

Then, try to run the deploy_application.sh script again.

Next, run the RDB dump script on the SQL server.

circle-check

After finishing the GBDS installation, configure it by running:

To review or manually change the settings, edit the configuration file located at: /etc/griaule/conf/gbds/application.conf. For more information about the settings, consult the GBDS Configuration Manual.

circle-exclamation

Then, start the GBDS API:

Test if the API is running:

The expected response is:

Finally, start GBDS:

And follow the installation execution

gbdslogt

Installing GBS applications

  • To install the GBS Applications, you will need: .war File

  • for each application .sql File

Dump script

/opt/griaule/tools/install_services/install_services.sh .war to the directory /opt/griaule/tools/deploy_application/files Then, move the files

/opt/griaule/tools/deploy_application/deploy_application.sh --services

circle-info

/opt/griaule/tools/auto_appconfig/auto_appconfig.sh --services here.

Last updated

Was this helpful?