Quilibrium Tools rely on an inventory file located at inventories/hosts.yml to define your nodes and their details.
This file serves as a blueprint for Ansible to identify and manage your nodes.
Here's an example of a basic inventory structure:
nodes:
vars:
ansible_password: '{{ quilibrium_password }}'
hosts:
node01:
ansible_host: 192.168.1.1
node01:
ansible_host: 192.168.1.2
node03:
ansible_host: 192.168.1.3
or inventories/hosts.example.yml
- This example defines a group called "
nodes" containing three individual nodes named node01, node02, and node03. - Each node entry specifies its hostname (ansible_host) for connection purposes.
- The
ansible_passwordvariable is crucial, but we'll address how to secure it in this guide. - Refer to the Ansible documentation for more information on inventories: https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
Variables are defined in the file inventories/group_vars/all.yml
-
Use the file inventories/group_vars/all.example.yml to create your file
inventories/group_vars/all.yml -
You can change the default user
ansible_user(ubuntu by default) -
You can change the root path of the Quilibrium node
node_path -
The Quilibrium API
quilibrium_api_urlis reachable via the default valuehttp://127.0.0.1:8338. Change it if you change the default port in theconfig.ymlfile. -
ansible_become_passis linked to your user password to connect as root on your nodes. -
go_max_procs: indicates how many core you want to use for your nodes. -
dataWorkerMemoryLimit: indicates how many memory you want to use for your nodes. -
dataWorkerBaseListenPort: indicates port of process children. -
Refer to the Ansible documentation for more information on variables: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html
ansible_user: fpa
node_path: /home/{{ ansible_user }}/quilibrium
ansible_become_pass: "{{ ansible_password }}"
quilibrium_api_url: "http://127.0.0.1:8338"
If you manage multiple groups with different user logins, you can create a YAML file named after the group in the folder group_vars. Variables within will override variables in the all.yml file.
