-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathVagrantfile
64 lines (57 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# For i686 prefer a 32bit VM
# config.vm.box = "openruko32"
# config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# Leave this as a separate part, it allows chef
# to reload its env on the next part
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = 'cookbooks'
chef.add_recipe 'proxy'
chef.json = {
:proxy => {
:http_proxy => ENV['HTTP_PROXY'],
:https_proxy => ENV['HTTPS_PROXY'],
:no_proxy => "mymachine.me," + (ENV['NO_PROXY'] || '')
}
}
end
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = 'cookbooks'
chef.add_recipe 'apt'
chef.add_recipe 'build-essential'
chef.add_recipe 'openssl'
chef.add_recipe 'postgresql::client'
chef.add_recipe 'postgresql::server'
chef.add_recipe 'git'
chef.add_recipe 'nodejs::install_from_package'
chef.add_recipe 'python'
chef.add_recipe 'fakes3'
chef.add_recipe 'openruko'
chef.add_recipe 'heroku-toolbelt'
chef.json = {
:postgresql => {
:version => "9.1",
:listen_addresses => "*",
:hba => [
{ :method => "trust", :address => "0.0.0.0/0" },
{ :method => "trust", :address => "::1/0" },
],
:password => {
:postgres => "password"
}
},
:apiserver_key => "ec1a8eb9-18a6-42c2-81ec-c0f0f615280c",
:s3 => {
:s3_key => ENV['S3_KEY'] || '123',
:s3_secret => ENV['S3_SECRET'] || '123',
:s3_bucket => ENV['S3_BUCKET'] || 'openruko',
:s3_hostname => 'mymachine.me',
:s3_port => 4567
}
}
end
end