-
-
Notifications
You must be signed in to change notification settings - Fork 94
Installation
Myng edited this page Aug 26, 2021
·
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 )
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,firewall"
..and enjoy π
There is other method like bash script, docker are not recommended if you not familiar with LibreSBC.*