For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation with Ansible

Introduction

This manual describes the installation procedures for GBDS.

Installation Preparation

This section covers the essential steps required to install GBDS.

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

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

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

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

  1. Log in to the server as root

If the hostname is changed, restart the machine before proceeding.

GBDS Tools

GBDS Tools is a collection of bash scripts with specific features and dynamic usability. The main purpose 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 server cluster information.

Installing GBDS Tools

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

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

Repository already configured

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

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 /opt/griaule.

directory. Start by creating the directory:

Enter the created directory:

Then, download the GBDS Tools package:

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

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 located 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 hostname list file

  • ip.list- secondary hostname file

The files are preconfigured with default values for most parameters. Check whether anything needs to be changed to meet the needs of your environment.

Running the automatic environment setup

The automatic environment setup, called auto_envsetup.sh, is the automation for configuring 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.

MySQL Server

To install MySQL Server, run:

Then, proceed to Configuring the RDB password.

NDB Cluster

nodeOr, if you choose to install NDB Cluster, run:

Then, proceed to Configuring the RDB password.

Configuring the RDB password

After the installation, try logging in to MySQL by running the command:

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

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


If you cannot log in and you see the following error:

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

Copy the temporary password shown.

Then, change the password using the following command:

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

When prompted, enter the temporary password.

Then, try logging in to MySQL again using the new password.

If you can 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.

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.

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

To start the Ambari installation, enter the Ansible directory:

Then, download the package:

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

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

Enter the extracted directory:

Then, run the installation script:

Answer the installation questions and proceed until finished.

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 /opt/griaule/tools/deploy_application/files.

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

Then, run the following command to install GBDS:

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

Enter the files:

And download the OpenCV package:

Then, try running the deploy_application.sh script again.

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

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, see the GBDS Configuration Manual.

Then, start the GBDS API:

Test whether the API is running:

The expected response is:

Finally, start GBDS:

And monitor the execution log :

Installing GBS applications

To install the GBS Applications, you will need:

  • File .war for each application

  • Dump script .sql for each application

First, install and configure Tomcat for the web applications. This should only be done on the server that will host the web applications. Use the following command:

Then, move the files .war files to the /opt/griaule/tools/deploy_application/files and run the command:

After that, configure the applications with the following command:

To explore the individual settings of each application, consult the corresponding configuration manuals listed here.

Last updated

Was this helpful?