Skip to content

Instantly share code, notes, and snippets.

@sharnik
Created February 13, 2014 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharnik/8975874 to your computer and use it in GitHub Desktop.
Save sharnik/8975874 to your computer and use it in GitHub Desktop.
site :opscode
cookbook 'apt'
cookbook 'chruby'
require 'berkshelf/vagrant'
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
# Use Berksfile
config.berkshelf.enabled = true
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.add_recipe 'apt'
chef.add_recipe 'chruby::system'
chef.json = {
chruby' => {
'rubies' => {
'2.0.0-p247' => true,
'1.9.3-p392' => false
},
'default' => '2.0.0-p247'
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment