Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (33 sloc) 1.224 kB
# -*- 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
Jump to Line
Something went wrong with that request. Please try again.