Coder Social home page Coder Social logo

virtualbox-cluster's Introduction

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 [email protected]: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

virtualbox-cluster's People

Contributors

samuell avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

johandahlberg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.