-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
36 lines (32 loc) · 1002 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu-precise-64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :shell, path: 'upgrade-chef.sh'
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe('apt')
chef.add_recipe('build-essential')
chef.add_recipe('ruby_build')
chef.add_recipe('rbenv::system')
chef.add_recipe('vim')
chef.add_recipe('rbenv::vagrant')
# You may also specify custom JSON attributes:
chef.json = {
rbenv: {
rubies: [ "1.9.3-p385" ],
upgrade: 'sync',
global: '1.9.3-p385',
gems: {
'1.9.3-p385' => [
{ name: 'bundler' }
]
}
}
}
end
end