Example of Tarantool Cartridge role using.
Full documentation you can find here.
This example is used in the tutorial dedicated to the Tarantool Cartridge Ansible role (Russian and English).
- Ansible 2.8.4 or higher.
- Vagrant
First, start two vagrant virtual machines:
$ vagrant up
Install Tarantool Cartridge role:
$ ansible-galaxy install tarantool.cartridge,1.0.1
Then, deploy Tarantool Cartridge application on this machines and set up cluster topology:
$ ansible-playbook -i hosts.yml playbook.yml
Wait for playbook to be completed.
Then, go to the http://localhost:8181/admin/cluster/dashboard and enjoy!
Run playbook with updated inventory:
$ ansible-playbook -i hosts.updated.yml playbook.yml
Again, go to the http://localhost:8181/admin/cluster/dashboard.
Don't forget to stop virtual machines:
$ vagrant halt