-
Notifications
You must be signed in to change notification settings - Fork 13
/
Vagrantfile
34 lines (27 loc) · 1.13 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
root = File.expand_path("..", __FILE__)
chef_json = File.join(root, "solo.json")
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Check https://github.com/mitchellh/vagrant/issues/713
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/openspending", "1"]
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/openspendingjs", "1"]
# Check https://github.com/mitchellh/vagrant/issues/516
config.vm.customize(["modifyvm", :id, "--nictype1", "Am79C973"])
config.vm.customize do |vm|
vm.memory_size = 1024
end
config.vm.forward_port 8983, 8983
config.vm.forward_port 5000, 5000
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.json = JSON.parse(File.read(chef_json))
chef.json["user"] = "vagrant"
chef.json["run_list"].each do |recipe|
chef.add_recipe recipe
end
end
end