-
-
Notifications
You must be signed in to change notification settings - Fork 88
Installation
Minh edited this page Sep 14, 2024
·
21 revisions
There are multiple methods to install LibreSBC, but using Ansible is the best choice for convenient and minimize workload. If Ansible is new for you let spend a bit effort to learn it. If you already used Ansible then go head.
- LibreSBC Machine: Debian 10 buster.
- Ansible Machine: MacOS/Linux with Ansible ( Ansible Installation Guide)
- rsync is required on Ansible host.
- version of Ansible is not important (2.9.14 is used in the test)
git clone --depth 1 --branch <tag_name> https://github.com/hnimminh/libresbc.git
cd libresbc/build/ansible
vi ansible.cfg
[defaults]
private_key_file = <ssh-private-key-to-access-libresbc>
remote_port = <ssh-port-of-libresbc-host-default-is-22>
remote_user = <ssh-username-to-access-libresbc-host>
vault_password_file = <ansible-vault-secret-file>
vi inventories/production/hosts.yml
sbcs:
hosts:
<machine-name>:
ansible_host: <libresbc-machine-ip>
nodeid: <unique-nodeid>
-
ansible_host
: ip address of libresbc that ansible machine can ssh to -
nodeid
: must be unique name, best practice is using Greek/Japan/Roma God's name or whatever.. as long as they unique and related.nodeid
andmachine-name
can be same.
ansible-playbook playbooks/deployment.yml -i inventories/production -l "<machine-name>" -t "platform,libre,nginx,captagent" -e "debian_codename=bullseye" -e "signalwire_pat_token=Your-SignalWire-Personal-Access-Tokens"
- Since 2022, SignalWire Personal Access Tokens (PAT)s are required to access FreeSWITCH install packages
- Once you registered and got SignalWire Personal Access Tokens, you will need to declare ansible extra variable to install FreeSWITCH (when you run ansible-playbook with tag platform or freeswitch)
- Example:
ansible-playbook playbooks/deployment.yml -i inventories/production -l "<machine-name>" -t "platform,libre,nginx,captagent" -e "signalwire_pat_token=Your-SignalWire-Personal-Access-Tokens"
- Debian version by
debian_codename
bookworm
bullseye
buster
- when
debian_codename
is omittedbuster
will be used as default [22/08/2023]
- FreeSWITCH version by
freeswitch_version
(default:v1.10.6
")
ansible-playbook playbooks/deployment.yml -i inventories/production -l "<machine-name>" -t "platform,libre,nginx,captagent" -e "debian_codename=bullseye"
..and enjoy 👏
This will be collected from issue that encountered in community
- There is other method like bash script, docker are not recommended if you not familiar with LibreSBC.