diff options
-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" |