Skip to content

Vagrant configuration file for building from scratch didn't work out of the box. #5

Open
@russetkoala

Description

Ubuntu 12.04, Vagrant 1.0.1. The prebuilt branch worked fine out of the box, but I had to do some minor surgery on the master branch to get it to work (mostly just comparing the two and trying to minimise non-essential differences).

Diff of the necessary changes:

diff --git a/Vagrantfile b/Vagrantfile
index 562e633..38a2e4e 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,7 +1,7 @@
 # -*- mode: ruby -*-
 # vi: set ft=ruby :

-Vagrant.configure("2") do |config|
+Vagrant::Config.run do |config|
   # All Vagrant configuration is done here. The most common configuration
   # options are documented and commented below. For a complete reference,
   # please see the online documentation at vagrantup.com.
@@ -9,9 +9,7 @@ Vagrant.configure("2") do |config|
   # Every Vagrant virtual environment requires a box to build off of.
   config.vm.box = "precise32"

-  config.vm.provider "virtualbox" do |v|
-    v.customize ["modifyvm", :id, "--cpus", 4, "--memory", 3700, "--ioapic", "on"]
-  end
+  config.vm.customize ["modifyvm", :id, "--cpus", 4, "--memory", 3700, "--ioapic", "on"]

   # The url from where the 'config.vm.box' box will be fetched if it
   # doesn't already exist on the user's system.
@@ -51,7 +49,7 @@ Vagrant.configure("2") do |config|
     puppet.options = "--verbose"
   end

-  config.vm.network :forwarded_port, guest: 3000, host: 3030
+  config.vm.forward_port 3000, 3030


 end

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions