Installation using the installer

Description

The system is installed on servers with a Linux OS.
The browser used to configure the system must be no older than six months.
The first server in the installation becomes the master, and all subsequent servers are attached to it.
After installation on the master server, a comprehensive distributed configuration is created, including all servers allocated for installation.
The system is deployed on each server in a docker container without external orchestration.
Initial installation requires a DBMS connection and offers to install PostgreSQL instance(s) on the same servers.
In the special case the system is installed on one server (which is also the master), and then the DBMS can also be deployed by the installer in a separate docker container.
When installing the system on several servers, DB server redundancy is assumed; for this purpose two (or more) instances are deployed on several servers, with only the first DBMS instance deployed in master mode and the subsequent ones in streaming replication mode of the master.

Options

Operating system distribution options:

  • Linux Debian 13, 12, 11

  • Linux Ubuntu Server 20

  • Astra Linux

  • RedOS

  • Alt Linux (base alt)

Options by number of servers:

  • Installation on one or several servers.

Options by internet access on servers:

  • On a server with internet access the required packages are downloaded and installed automatically.

  • On a server without internet access the preliminary package installation operation is required.

Options by PostgreSQL DB servers used:

  • Installation using existing PostgreSQL DB servers (versions 12+).

  • Installation together with PostgreSQL

    • One instance on one of the existing servers in a docker container or on the host.

    • Several instances on existing servers with streaming replication, replication controller (automatic recovery/master switching back and forth).

  • Installation connecting to external PostgreSQL DB servers.

Options by file storages:

  • NFS on external media.

  • VRRP storage (storage over Virtual Router Redundancy Protocol).

  • S3 storage (configured individually for each domain).

  • Local placement on the same servers (possibly in mount partitions).

  • Local placement on the same servers with synchronization.

General installation and initial configuration plan

1. Preparation

1.1) Decide on the DBMS location — external installation, or on the same servers, on which servers, in a container or on the host.
1.1.1) If an external DBMS is used, a DB user (role) must be created in advance and specified during platform installation.
1.2) Decide on the master domain name.
1.3) Decide on storage locations (DB, log storage, recording storage, microservice working directories, and NFS directories).
1.4) Determine the local server addresses through which they will be connected.
1.5) Specify the PostgreSQL user name.
1.6) Choose passwords for the PostgreSQL accounts: postgres, platformpgadmin, era_replica.
1.7) Choose passwords for system administrator accounts.
1.8) Choose a unique cookie value for communication between servers.
1.9) Perform initial server preparation (configure the OS) and make sure the servers are accessible over ssh.

2. Platform installation (infrastructure and communication layer)

2.1) Prepare the installer (era_installer).
2.1.1) Installation on a server without internet access requires preliminary package installation.
2.1.2) Installation on a server with internet access can be performed from a remote machine if the available server address matches its local address for system installation. Otherwise the installer must be placed on the server and installation performed over an ssh connection.
2.2) Install the system on the master server using the sh installer (master server is a category relevant only to installation).
2.3) Create and activate the configuration.
2.4) Install the system on the other servers in the cluster using the sh installer.

If an installation failure occurs, the process must be started over.
This must be preceded by cleaning up leftovers. For this you can use the "uninstall_ssh.sh" script remotely or "uninstall.sh" locally, which allows specifying in detail the location of the artifacts of the instance being removed. If your installation used the default directories, you can use the "remove.sh" script from the installer directory "/tmp/era/scripts".
Installation can be performed with one command passing all parameters. Then during installation it is enough to enter passwords a few times when prompted.
The parameter list is available with the bash install_ssh.sh --help command.
An additional bonus is that the launch command line is saved for reuse.

3. Initial master domain configuration

3.1) Open the "Settings" application in the browser.
3.2) Adjust the configuration if necessary and activate the new one.
3.3) Upload the license and reserve quantitative indicators.
3.4) Change the administrator password and add users if necessary.
3.5) Create the first-level domain and transfer quantitative licenses to it.
3.6) Configure the black/white list of IP addresses for the SBC filter.
3.7) Upload an SSL certificate or configure the system for automatic issuance using ACME LetsEncrypt.
3.8) Make sure the system produces no warnings.

4. Working domain configuration

4.1) Switch to the working domain or log in under the working domain administrator account and open the "Settings" web application. Select advanced mode.
4.2) Reserve part of the quantitative licenses transferred from the parent domain for use.

5. Installing the platform product layer (information and processing layer)

5.1) In the working domain "Settings" application
5.1.1) create an integration channel (set role admin, user Administrator, API access *), save the generated token;
5.1.2) add the builder_admin, callcenter_admin, callcenter_supervisor roles to administrator user accounts.
5.2) Prepare the installer (era_product.zip), unpack it, run the installation script passing the parameters of the installed system, and wait for it to complete.
5.3) Make sure new applications appeared in the application menu and the microservices are active.
5.4) Check telephony functionality and data display in dashboards.

6. Initial telephony configuration

6.1) In the working domain import settings or create the minimum required entities:
6.1.1) user accounts,
6.1.2) provider accounts,
6.1.3) routing rules,
6.1.4) external number normalization rules,
6.1.5) ivr scripts,
6.1.6) service codes,
6.1.7) recording rules.
6.2) Test calls: between users, to the IVR script, to an external number.