Git Product home page Git Product logo

cookbook-rancher's Introduction

rancher

Installs Rancher

attributes

documentation for attributes is inline at: attributes/default.rb

recipes

server.rb

Installs Rancher labs server.

Run this on your primary node.

agent.rb

Installs Rancher labs agent.

Run this on all nodes.

Usage

Kitchen

This is mostly used for cookbook development and testing:

$ kitchen converge ubuntu
$ curl localhost:8080

Chef-Provisioning

Note: If you have chefdk 0.6.0 you may need to install a newer chef-provisioning gem to overcome the bug described here. To do this run chef gem install chef-provisioning.

Vagrant

This will create a two node rancher cluster utilizing the vagrant module for chef provisioning:

$ rake berks
$ rake server agent
$ curl localhost:8080

to access the VMs you need to be in the provision/vms directory:

$ cd provision/vms
$ vagrant ssh agent
vagrant@agent:~$ sudo docker ps
CONTAINER ID        IMAGE                  COMMAND             CREATED             STATUS              PORTS               NAMES
40ce0296df02        rancher/agent:v0.7.9   "/run.sh run"       4 minutes ago       Up 4 minutes                            rancher-agent

to cleanup the VMs run:

$ rake destroy_machines

Development

Publish Cookbook to Supermarket

$ rake publish

cookbook-rancher's People

Contributors

paulczar avatar dullyouth avatar

Watchers

James Cloos avatar

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.