Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Chef Vagrant Boxes & Playground
Ruby Shell
Tag: 0.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.chef
definitions
scripts
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE
README.org
Rakefile
Vagrantfile

README.org

Chef Box: Ubuntu Chef Images for Vagrant

This project enables you to automatically build a complete set of Ubuntu Vagrant Boxes for use with Vagrant. The boxes are built with the Official OpsCode Chef 0.10 Ubuntu Packages baked in. This means you can start either a Chef Server or Client Node easily at boot time.

Also included in this project is the Vagrant scaffolding to launch a Chef cluster on your Desktop. The default ‘vagrant up’ starts a Chef Server & 2 Chef Client Nodes. The nodes are setup to automatically join the Chef cluster. You can practice your cookbook, search, knife and shef skills really easily with 3 disposable nodes. See the examples below for more info.

You can also merge the contents of this project into your existing Chef Repo and record, as an artifact in your git repository, how you built your Vagrant Box instead of it being mystery-meat from the interweb cache.

Requirements

Setup

gem install bundler
bundle install

Build

Example: Build a Natty 64bit Box

rake box:natty64

Example: Build All Boxes

rake box:all

Launch

Example: 1 Chef Server & 2 Chef Client Nodes (default)

vagrant up

Example: 1 Chef Server & 1 Chef Client Node

vagrant up chef.vm
vagrant up node0.vm

Knife

Node

Example: Works Anywhere (Host or Guest)

knife node list
knife node show chef.vm

Search

Example: Works Anywhere (Host or Guest)

knife search node "name:chef*.vm"
knife search node "name:node*.vm"

SSH

Example: Works Anywhere (Host or Guest)

knife ssh "*:*" "date" -a ip -x vagrant -i .ssh/id_rsa --no-host-key-verify

License Apache 2

Something went wrong with that request. Please try again.