Installing Unravel on a single cluster deployment using Ansible
Ensure that Ansible is not running on the Unravel node, and then set
hostsin theinventoriesdirectory.Command
cd inventories ls -alR
Output
.: total 16 drwxr-xr-x 4 user1 domain users 4096 Apr 23 10:31 . drwxr-xr-x 5 user1 domain users 4096 Jun 15 19:33 .. drwxr-xr-x 2 user1 domain users 4096 Apr 23 10:32 core_node drwxr-xr-x 2 user1 domain users 4096 Jun 15 19:33 edge_nodes ./core_node: total 12 drwxr-xr-x 2 user1 domain users 4096 Apr 23 10:32 . drwxr-xr-x 4 user1 domain users 4096 Apr 23 10:31 .. -rw-r--r-- 1 user1 domain users 46 Apr 13 18:39 hosts
Navigate to
ansible-installation/inventories/directory and open the<node>hostsfile.Append the
hostnameandsshinformation as a new line.Example
hostsfile:[core_node] tnode93.unraveldata.com ansible_user=root ansible_ssh_private_key_file=/home/root/.ssh/id_rsa
Note
hostsinedge_nodesmust remain empty.hostsincore_nodesmust havebecome_userundefined.
For additional parameters, see Ansible documentation.
Navigate to the
ansible-installationdirectory and create a copy of thevars_template.ymlfile.cp vars_template.yml vars.yml
Edit
vars.ymlby using any editor. For example, the vi editor.vi vars.yml
The
vars.ymlfile contains deployment parameters. You can customize these parameters for installing and deploying Unravel on a single cluster.For the
rootuser, set the prerequisites using thepre-reqs.ymlfile.ansible-playbook -i inventories/ pre-reqs.yml -e @vars.yml -vvv
Before Unravel is installed by the Ansible playbook, you must ensure that certain preconditions are met. For example, creating a Unravel directory, user, and a group and installing specific libraries. Use the pre-reqs.yml playbook command to fulfill these preconditions.
From the Unravel server, run the Ansible playbook.
ansible-playbook -i inventories/ install_unravel.yml -e @vars.yml -vvv
Applies all values specified in the
vars.ymlto the Ansible playbook. See Verify Unravel installation using Ansible.Note
If an error occurs, modify the
vars.ymlfile depending on the error, and rerun the Ansible playbook with the specific tag for which an error has occurred. To see the list of available tags, run the following command:ansible-playbook -i inventories/ install_unravel.yml -vvv -e @vars.yml --list-tags