Installation with Ansible
Introduction
This manual describes the installation procedures for GBDS.
Installation Preparation
This section covers the essential steps required to install GBDS.
All steps must be performed with root privileges on all nodes, unless otherwise indicated.
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.
Log in to the server as root
Before you start, make sure the hostname of the machine is correct. To check it, run the command:
If it is not correct, run the command:
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.
Before you start, make sure the wget is installed:
If not, run the command:
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.
If the Griaule repository is not configured, running the command above will result in the following error:
In this case, proceed to Repository not configured.
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.
In the commands below, make sure to replace <version> with the version of the package that was downloaded.
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 filecluster.list- main hostname list fileip.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.
Change the hostnames in the files to match those of the environment is imperative.
In the properties.inifile, look for the SPECIFIC TO settings and make the necessary changes to match your environment.
In the SPECIFIC TO AUTO_ENVSETUPsection, make sure the username and password are configured correctly in usernm, userpw and rootpw.
In the SPECIFIC TO INSTALL_MYSQL, note the RDB password, configured in dbuspw, as it will be used later.
In the cluster.list, make sure to change the hostnames and adapt the number of hosts in each component so that it matches the environment.
By default, the file is configured for a cluster of three nodes. If the environment has, for example, only one node, remove the references to nodes 2 and 3 and replace all names with your server hostname.
In the ip.list, make sure to change the hostnames and the IP addresses to match the environment, following the format <hostname>|<IP address> on each line.
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.
You only need to perform one RDB installation.
MySQL Server
It is recommended to install MySQL on the master node.
To install MySQL Server, run:
Then, proceed to Configuring the RDB password.
NDB Cluster
The NDB installation MUST be on the MASTER.
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.
The default RDB installation settings may not be the desired settings. Check them in the configuration file my.cnf and adapt them to meet the needs of the environment.
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.
If your GBDS RDB is not on the MASTERnode, it is recommended to start another RDB instance for Ambari.
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:
In the command below, make sure to replace <version> with the version of the package that was downloaded.
Enter the extracted directory:
Since the process takes some time to complete, it is recommended to run the installation script using screen to avoid interruptions.
To do this, install screen:
Start a new session in screen:
Then, proceed with running the installation script as described below.
—
If the connection to the server is lost, the script will not be interrupted and you can resume the session by reconnecting to the server and running:
Then, run the installation script:
Answer the installation questions and proceed until finished.
Once started, DO NOT interrupt any of the scripts. If any problem occurs, contact the Griaule support team.
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.
After running the following script, all contents of the /opt/griaule/tools/deploy_application/files directory will be deleted.
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.
The RDB password was configured here.
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.
Make sure that the hostname in the configuration file (application.conf) matches the hostname of the server.
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?

