diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-03-07 10:57:47 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-03-07 10:57:47 +0000 |
commit | 57c14e7ca29e8a28ce0cbe7cfc01840e35235c8e (patch) | |
tree | 85723939a748a00ae61133fd2efbd7abbee02165 | |
parent | 94f2a8f4d34f49db0191faa0b048291efd4a4f89 (diff) |
Update Vagrantfile to Vagrant API v2
Required for Vagrant >=1.1
Should be backwards compatible with older versions
http://docs.vagrantup.com/v2/installation/backwards-compatibility.html
-rw-r--r-- | config/Vagrantfile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/config/Vagrantfile b/config/Vagrantfile index 4253215fc..ea6a0c3d5 100644 --- a/config/Vagrantfile +++ b/config/Vagrantfile @@ -3,13 +3,19 @@ # Then you should be able to visit the site at: # http://alaveteli.10.10.10.30.xip.io -Vagrant::Config.run do |config| +VAGRANTFILE_API_VERSION = "2" + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "precise64" config.vm.box_url = "http://files.vagrantup.com/precise64.box" - config.vm.network :hostonly, "10.10.10.30" + config.vm.network :private_network, :ip => "10.10.10.30" + # The bundle install fails unless you have quite a large amount of # memory; insist on 1.5GiB: - config.vm.customize ["modifyvm", :id, "--memory", 1536] + config.vm.provider "virtualbox" do |vb| + vb.customize ["modifyvm", :id, "--memory", 1536] + end + # Fetch and run the install script: config.vm.provision :shell, :inline => "wget -O install-site.sh https://raw.github.com/mysociety/commonlib/master/bin/install-site.sh" config.vm.provision :shell, :inline => "chmod a+rx install-site.sh" |