Created
February 13, 2014 14:25
-
-
Save sharnik/8975874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site :opscode | |
cookbook 'apt' | |
cookbook 'chruby' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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