forked from buttercoin/buttercoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
44 lines (38 loc) · 1.06 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
35
36
37
38
39
40
41
42
43
44
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# install chef solo on all machines
config.omnibus.chef_version = "11.4.4"
# enable berkshelf
config.berkshelf.enabled = true
config.vm.define "buttercoin" do |node|
node.vm.hostname = "buttercoin"
node.vm.network :private_network, ip: "33.33.33.50"
node.vm.box = "ubuntu1204"
node.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"
node.vm.provider :virtualbox do |vb|
# Give enough horsepower to build without taking all day.
vb.customize [
"modifyvm", :id,
"--memory", "1024",
"--cpus", "2",
]
end
# set up buttercoin development environment
node.vm.provision :chef_solo do |chef|
chef.json = {
"nodejs" => {
"install_method" => "source",
"version" => "0.10.9"
},
"git" => {
"version" => "1.8.3"
}
}
chef.run_list = [
"recipe[nodejs]",
"recipe[git]"
]
end
end
end