forked from victorykit/victorykit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
37 lines (33 loc) · 1.2 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
HERE = File.dirname(__FILE__)
INFRA_DIR = "#{HERE}/infra"
Vagrant::Config.run do |config|
# This loads in a base box that is like a heroku cedar stack node
config.vm.box = "heroku"
config.vm.box_url = "https://dl.dropbox.com/u/219714/vagrant-boxes/heroku.box"
config.vm.forward_port 5432, 5432 # postgres
config.vm.forward_port 6379, 6379 # redis
config.vm.forward_port 3000, 3000 # rails s
config.vm.provision :chef_solo do |chef|
config.vm.share_folder "workspace", "/home/vagrant/workspace", "#{HERE}"
chef.cookbooks_path = ["#{INFRA_DIR}/site-cookbooks", "#{INFRA_DIR}/cookbooks"]
chef.add_recipe("apt")
chef.add_recipe("heroku_addons::postgresql")
chef.add_recipe("heroku_addons::redis")
chef.add_recipe("workstation::rubygems")
chef.add_recipe("workstation::mysql")
chef.add_recipe("workstation::bash")
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" }
}
}
end
end