Giter Site home page Giter Site logo

rancher-vagrant's Introduction

Rancher Demo using Vagrant

This is a simple Vagrantfile that allows a quick example of how to use Rancher. This is not intended for anything production-related.

Use

Run:

vagrant up

Wait several minutes for all images to download and VM to start. What this does:

  1. Creates a single VM as the rancher-server. This will automatically install and start the server for you.
  2. Creates two 'mostly' blank Linux boxes running Ubuntu 14.04. The only additional step it takes is to install the latest stable release of Docker for you.

When everything is up, you can visit your Rancher user interface by going to 172.30.0.100:8080 (give it time to start up even after the VM is created).

Add the Hosts

To add the two hosts that are available:

  1. Go to the Rancher Server, click Infrastructure, and Add Host. Select Save the first time you visit this page.
  2. Select Custom and copy that string in Step 4
  3. SSH into the two boxes and run that command you just copied.
    • vagrant ssh rancher-host-01 and vagrant ssh rancher-host-02
    • Run the command on each host sudo docker run -d --privileged...
  4. After running the command on both hosts, return to the Rancher interface
  5. Click on the Infrastructure -> Hosts tab, after a minute or so the new hosts will appear in that list!
  6. Follow tutorials online for how to create Application Stacks, add Services, etc.

rancher-vagrant's People

Contributors

gcallsen avatar ricardovantongeren avatar

Stargazers

Victor Hazbun Anuff avatar James Soubry avatar Paul Wiggett avatar Thor Erik avatar Cees-Jan Kiewiet avatar Mario avatar DELGEHIER Cédric avatar  avatar Nicolas Lassalle avatar

Watchers

Kyle L. Jensen avatar Joel Moxley  avatar  avatar James Cloos avatar Erik Allen avatar Anthony Alves avatar Alejandro Mesa avatar  avatar  avatar

rancher-vagrant's Issues

Need to install vagrant-rancher plugin before doing vagrant up

Vagrant up starts the server but then gives this error for the hosts:

"The guest operating system of the machine could not be detected!
Vagrant requires this knowledge to perform specific tasks such
as mounting shared folders and configuring networks. Please add
the ability to detect this guest operating system to Vagrant
by creating a plugin or reporting a bug."

$ vagrant --version
Vagrant 1.9.1

$ VBoxManage --version
5.1.16r113841

Running vagrant plugin install vagrant-rancher fixed this.

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.