Webitel can be installed in one of two ways:
-
With Ansible (recommended). The playbook from the webitel/deployment repository installs the entire stack on Debian – PostgreSQL, RabbitMQ, Consul, FreeSWITCH, OpenSIPS, rtpengine, NGINX, Grafana and the Webitel services – and configures it for the selected profile.
-
Manually, component by component. See Manual installation.
Profiles
A profile defines how many servers are used and how components are made redundant. This guide covers singlehost and multihost.
|
Criterion |
|
|
|---|---|---|
|
Sample inventory |
|
|
|
Data centers |
1 (single server) |
1 |
|
PostgreSQL |
standalone |
standalone |
|
Consul |
1 server |
1 server |
|
RabbitMQ / Nomad |
single node |
single node |
|
Tolerates |
– |
loss of a non-database server |
|
Database failover |
– |
– |
|
RPO |
last backup |
last backup |
|
RTO |
hours |
hours |
RPO and RTO are target values for the database with default settings, not guarantees.
singlehost handles up to 30–40 thousand calls per day (about 60 concurrent recorded calls) and up to 50 thousand chat conversations per day. For multihost, see Basic Architecture of the Industrial Environment.
Requirements
Servers
-
x86-64 (amd64) CPU.
-
Debian 12 (bookworm) or 13 (trixie) with internet access.
-
singlehost: at least 4 cores / 8 threads at 3.0 GHz, 8 GB RAM, 100 GB disk (>150 IOPS). -
multihost: see Basic Architecture of the Industrial Environment. -
For call recordings – a separate disk or S3 storage.
-
multihost: servers on the same private network with no access restrictions between them.
The machine that runs Ansible can be any Linux server or one of the Webitel servers, with SSH access and sudo privileges on all servers.
Prerequisites
-
Webitel APT repository keys (access key and secret key) – request them from your Webitel manager.
-
SignalWire Personal Access Token for FreeSWITCH – how to create one.
-
For HTTPS (required for WebRTC), one of the following:
-
a domain name pointing to the NGINX server – for a Let's Encrypt certificate;
-
your own certificate and key in PEM format;
-
a self-signed certificate (the default; the browser will show a warning).
-
Preparation
Run these steps on the machine you will run Ansible from.
-
Install Ansible.
Debian 13:
Bashapt install git sudo ansible-core python3-cryptographyDebian 12:
Bashapt install git sudo pipx pipx install --include-deps ansible-core pipx inject ansible-core cryptography pipx ensurepath && exec bash -
Make sure the
ansible-coreversion is 2.16 or later:Bashansible --version -
Download the playbook and install the Ansible collections:
Bashcd /opt git clone --single-branch -b v26.06 https://github.com/webitel/deployment.git cd deployment/ansible ansible-galaxy collection install -r requirements.yml
Configuration
The playbook is configured through an inventory – a directory with three files:
-
01-hosts.yml– the servers and the services on each of them; -
group_vars/all/main.yml– parameters; -
group_vars/all/vault.yml– secrets.
Create an inventory from the sample for your profile:
cp -r inventories/<profile>.example inventories/production
General parameters
In inventories/production/group_vars/all/main.yml:
|
Parameter |
Value |
|---|---|
|
|
Domain name of the NGINX server. |
|
|
|
|
|
Email for Let's Encrypt – only for |
|
|
Paths to the certificate and key on the Ansible machine – only for |
|
|
|
|
|
Public IP address for media, if it is not detected automatically. |
|
|
|
|
|
|
|
|
Server time zone, |
|
|
Proxy, if the servers can reach the internet only through it. |
General secrets
Copy the template and replace all CHANGE_ME values:
cp inventories/production/group_vars/all/vault.yml.example \
inventories/production/group_vars/all/vault.yml
$EDITOR inventories/production/group_vars/all/vault.yml
|
Key |
Value |
|---|---|
|
|
Webitel APT repository keys. |
|
|
SignalWire token. |
|
|
A random string: |
|
|
PostgreSQL and RabbitMQ passwords. |
|
|
Grafana administrator password. |
|
|
Grafana database passwords. |
Passwords may contain only letters, digits and the characters . _ ~ -, for example openssl rand -hex 16.
singlehost
In inventories/production/01-hosts.yml, specify the server address. Do not change the list of services.
Ansible on the server itself:
all:
hosts:
node1:
ansible_host: 127.0.0.1
ansible_connection: local
Ansible on another machine:
all:
hosts:
node1:
ansible_host: 203.0.113.10
ansible_user: admin
ansible_ssh_private_key_file: ~/.ssh/id_rsa
multihost
In inventories/production/01-hosts.yml, specify the servers and the services on each of them. In this example, the infrastructure runs on infra1 and the Webitel applications run on app1:
all:
hosts:
infra1:
ansible_host: 10.0.0.11
ansible_user: admin
services: [consul_server, postgres, rabbitmq, freeswitch, rtpengine, opensips]
app1:
ansible_host: 10.0.0.12
ansible_user: admin
services:
- consul_agent
- nginx
- grafana
- webitel_core
- webitel_engine
- webitel_call_center
- webitel_flow_manager
- webitel_storage
- webitel_messages
- webitel_logger
- webitel_cases
- webitel_media_exporter
- webitel_frontend
Additionally, in vault.yml:
|
Key |
Value |
|---|---|
|
|
Consul encryption key: |
Passwords cannot be left at the default value (webitel).
Validate the inventory:
ansible-playbook -i inventories/production playbooks/validate_topology.yml
Running the playbook
-
Encrypt the secrets and remember the password:
Bashansible-vault encrypt inventories/production/group_vars/all/vault.yml -
Run the playbook:
Bashansible-playbook -i inventories/production site.yml --ask-vault-pass
The playbook validates the configuration first and stops with an explanation if something is wrong. Fix the reported issue and run it again – re-running is safe.
Licensing
-
At the end of the installation, the playbook prints the server ID. You can also get it on the NGINX server:
Bashcurl -k https://localhost/api/srvinfo -
Create a request on the support portal with this ID.
-
Open
https://<nginx_site_name>and create a user and a domain with the license key you received. -
Open Admin and proceed to the system settings.
Network access
Open only the following ports to the internet: 443/tcp (web interface and WebRTC), 80/tcp (HTTPS redirect and Let's Encrypt), plus SIP and RTP according to your connection setup.
Manual installation
Install the components in the following order. Each directory contains instructions, sample configurations and service files:
Then proceed to Licensing.