Skip to content

Commit

Permalink
Upgrade Vagrantfile for use with vagrant >=1.1
Browse files Browse the repository at this point in the history
Fixes #442
  • Loading branch information
dmac committed Sep 27, 2013
1 parent 9e20ba5 commit bb24f22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Vagrant::Config.run do |config|
Vagrant.configure("2") do |config|
config.vm.box = "lucid64"
config.vm.host_name = "barkeep-vagrant"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
Expand All @@ -7,12 +7,12 @@ Vagrant::Config.run do |config|

# Forward a port from the guest to the host, which allows for outside
# computers to access the VM, whereas host only networking does not.
config.vm.forward_port 80, 8080

# More memory than the default, since we're running a lot of stuff (1GB)
config.vm.customize ["modifyvm", :id, "--memory", 1024]
config.vm.network "forwarded_port", guest: 80, host: 8080

# Have ssh be accessible through port 2250. Hard coding this so we don't collide with other vagrant vms.
config.vm.forward_port 22, 2250
config.vm.network "forwarded_port", guest: 22, host: 2250
config.ssh.port = 2250

# More memory than the default, since we're running a lot of stuff (1GB)
config.vm.provider("virtualbox") { |vb| vb.customize ["modifyvm", :id, "--memory", 1024] }
end

0 comments on commit bb24f22

Please # to comment.