…called instances. By default your instances will be converged with Chef Solo and run in Vagrant virtual machines.
Get a listing of your instances with: $ kitchen list
Run Chef on an instance, in this case default-ubuntu-1204 , with: $ kitchen converge default-ubuntu-1204
Destroy all instances with: $ kitchen destroy
You can clone a Chef cookbook project that contains Test Kitchen support and run through all the instances in serial by running: $ kitchen test
There is help …
for Vagrant and will yield plenty of information and tutorials.
Today, we are releasing Docker-friendly Vagrant boxes based on . Docker requires at least kernel 3.8, but all the Ubuntu 12.04 Vagrant boxes that we've encountered so far come with kernel 3.2 or 3.5, so that installing Docker on them requires a reboot. This makes provisioning a to be significantly more painful than it should be.
The Vagrant boxes that we're releasing …
add warden as shared folder in Vagrant file
edit Vagrant file and add this line: config.vm.synced_folder "warden", "/warden"
then login into the vm with ssh and install all required gems: vagrant ssh cd /warden sudo gem install bundler sudo bundle
edit config/linux.yml and change the container_rootfs_path,
if you don't change it the setup will be lost after you reboot the vm because it is pointed to /tmp by default.
I've created a new dir in /tmp-warden …
An Introduction to Vagrant for Developers
On Distributing Command Line : Why I from Ruby to Go
dotRB: The Largest Ruby Conference in (October 18, Paris)
Following on from a successful ' dotJS'event comes dotRB. Announced speakers so far include , , and .
You're free to modify the Vagrant file to add or remove platforms.
Lets say you want to build a scout package for Ubuntu 10.04:
$ vagrant up ubuntu-10.04
This creates a Debian package, placing it in:
I've put this package on Dropbox, so you could install it on your Ubuntu 10 server: $ wget https://dl.dropboxusercontent.com/u/468982/scout_0.0.0%2B20130617203100-1.ubuntu.10.04_amd64.deb $ sudo dpkg -i scout_0.0.0+20130617203100-1.ubuntu.10.04_amd64.deb …
It's really simple to get Vagrant to install all of your cookbooks while it provisions the VM, you'll just need to point your provision settings within your Vagrantfile to the location of both cookbook directories. Something like the Vagrantfile below copies all of your libarian-chef managed cookbooks as well as your custom cookbooks over to the VM for provisioning. No need to install a plugin or anything additional.
Vagrant::Config.run do |config| config.vm.box = "precise64" …
…getting environment setup scripted, both locally and in CI. We're currently using a solution with Vagrant and Puppet that lets us spin up consistently formatted build boxes.
Leaky Test State
In production, the agent starts once per process. However, in a test run, the agent might restart hundreds of times. We've had to take care to avoid a leaking state between …
I decided to upgrade to Vagrant 1.1, which broke bento: the current bento master is incompatible with Vagrant 1.1. But selecting the right rbenv env and installing the latest available Vagrant gem (inside the rbenv environment) fixed it.
My base box build, but for some reason, the guest addition setup broke and while it worked on, it broke the image completely on . Don't ask me why.
As community gatherings like the Developer Summits, Meetup groups, and # ChefConf show - we are, in fact, a vibrant and open community of equals. The gifts we give each other are our attention, time, and our code. Some of us get paid to do it, others don't. Regardless, we're all equal in our potential for impact - if you are the change you want to see in the Chef community, odds …
Wanderlust - Some notes on effective use of Vagrant after a couple of years of use.
Nitrous.io - The former action.io web development platform, now with a new name and more funding.
Introducing TowTruck: A Collaboration Service for Every Website - Things like chat, co-browsing, and co-authoring as a service from .
Security Incident Update - If you've got a account and aren't aware of the credit card breach, you should …