Skip to content

samuell/virtualbox-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtualbox Cluster

A 3-Node Virtualbox cluster for quickly testing out distributed apps etc.

Prerequisites

Installing the requirements in Ubuntu (tested with 14.04)

  1. Install Virtualbox:
    sudo apt-get install virtualbox
  2. Install a recent version of ansible:
    sudo apt-get install ansible/trusty-backports
    (if you ubuntu version is "trusty", otherwise, replace it with your appropriate version)
  3. Install Vagrant, by first downloadng the proper .deb file from vagrantup.com
  4. ... and then installing it with:
    sudo dpkg -i <deb-file>

Setup and Usage

Clone the github repository:

git clone git@github.com:samuell/virtualbox-cluster.git
cd virtualbox-cluster

Optional: Add/Enable roles

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

Bring up the three boxes:

vagrant up

Log in to any of the three nodes (master, slave1 or slave2):

vagrant ssh (master|slave1|slave2)

Log in to nodes, from nodes:

ssh (master|slave1|slave2)

References

About

A (currently only 3 node) virtualbox cluster for quickly testing out things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published