Migration from CentOS7
Migrating OMniLeads from CentOS-7 🔄
Since the beginning of the Project, the installations have been based on CentOS7 operating systems. However, given its upcoming end-of-life date, the OMniLeads team has worked diligently to support modern operating systems such as _Ubuntu Server, Debian Server, Rocky Linux, among others
With the adoption of a container-based architecture and fully automated installation methods, IT administration and maintenance tasks have been significantly simplified due to the clear abstraction of underlying dependencies.
To achieve a correct migration from an OMniLeads instance on CentOS7 to its container-based architecture, it is necessary to perform a Fresh Install of OMniLeads on another host (or group of hosts, depending on the installation method involved). Ensure that the variables listed in the inventory.yml have the necessary correspondence with their counterparts on the CentOS7 instance. Specifically:
ami_user
ami_password
postgres_password
postgres_database
postgres_user
dialer_user
dialer_password
IMPORTANT: For the procedure, we must consider that the version of the Postgres image to be deployed with OMniLeads should be "omnileads/postgres:230624.01". Therefore, the following change should be added to the variable in groupvars_all/all inherent to the service:
In OMniLeads on CentOS7, execute the following command to obtain the corresponding backup files. It is important to clarify that the resulting backup will be uploaded to the relevant Object Storage that the new OMniLeads instance used in its "fresh" deployment:
To migrate the information to an OMniLeads using the AIO installation method, export the S3_ENDPOINT variable as shown below: As we have seen in the Backups section, the goal is to restore the backups of custom audio, phone audio, database backups, etc., on the new OMniLeads deployment.
For an OMniLeads installation using the AIT method (cluster), we export the S3_ENDPOINT variable as follows:
If, on the other hand, you decide to use an External Object Storage, the data will need to be obtained from the corresponding provider:
Finally, we proceed to upload all backups from OMniLeads on CentOS7 to the Bucket defined in the previous step.
Restoring your information
We need to modify the last two parameters of the inventory.yml
file in our tenants' directory. This is necessary to indicate that the bucket does not manage reliable certificates and to configure the timestamp of the backup to be restored:
By executing the following script with the action "restore," the previously taken backup will be reinstated on the newly deployed instance, thus creating a migrated environment.
Now, the original Postgres image must be restored, which involves resetting the content of group_vars/all to its previous state:
Finally, we run the upgrade:
Configuration of Asterisk Dialplan
For official project repository, please visit the documentation provided in the repo. To make permanent modifications to the system (dialplan, scripts, specific configurations), it is recommended to use custom images. An example of how to achieve this is shown below.
OMniLeads is based on containers (images), so any code changes made within the container are "ephemeral".
Última actualización