A 3-Node Virtualbox cluster for quickly testing out distributed apps etc.
- Install Virtualbox:
sudo apt-get install virtualbox
- Install a recent version of ansible:
(if you ubuntu version is "trusty", otherwise, replace it with your appropriate version)
sudo apt-get install ansible/trusty-backports
- Install Vagrant, by first downloadng the proper .deb file from vagrantup.com
- ... and then installing it with:
sudo dpkg -i <deb-file>
git clone [email protected]:samuell/virtualbox-cluster.git
cd virtualbox-cluster
If you want install some roles, create a folder structure for a new role under roles/
(at least a roles/tasks/main.yml
file), and activate it by listing it under roles:
in playbook.yml. An example, "scala" role is included for illustration.
To activate that, uncomment that role under roles:
, by, changing from:
roles:
#- scala
to:
roles:
- scala
vagrant up
vagrant ssh (master|slave1|slave2)
Log in to nodes, from nodes:
ssh (master|slave1|slave2)