4 Vagrant.configure("2") do |config|
6 config.vm.network "forwarded_port", guest: 80, host: 8089
8 # If true, then any SSH connections made will enable agent forwarding.
9 config.ssh.forward_agent = true
12 if ENV['CHECKOUT'] != 'y' then
13 config.vm.synced_folder ".", "/home/vagrant/Nominatim"
17 config.vm.define "ubuntu", primary: true do |sub|
18 sub.vm.box = "bento/ubuntu-16.04"
19 sub.vm.provision :shell do |s|
20 s.path = "vagrant/Install-on-Ubuntu-16.sh"
26 config.vm.define "travis" do |sub|
27 sub.vm.box = "bento/ubuntu-14.04"
28 sub.vm.provision :shell do |s|
29 s.path = "vagrant/install-on-travis-ci.sh"
35 config.vm.define "centos" do |sub|
36 sub.vm.box = "centos/7"
37 sub.vm.provision :shell do |s|
38 s.path = "vagrant/Install-on-Centos-7.sh"
41 sub.vm.synced_folder ".", "/vagrant", disabled: true
45 # configure shared package cache if possible
46 #if Vagrant.has_plugin?("vagrant-cachier")
47 # config.cache.enable :apt
48 # config.cache.scope = :box
52 config.vm.provider "virtualbox" do |vb|
54 vb.customize ["modifyvm", :id, "--memory", "2048"]
58 # config.vm.provider :digital_ocean do |provider, override|
59 # override.ssh.private_key_path = '~/.ssh/id_rsa'
60 # override.vm.box = 'digital_ocean'
61 # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
64 # # provider.token = 'YOUR TOKEN'
65 # provider.image = 'ubuntu-14-04-x64'
66 # provider.region = 'nyc2'
67 # provider.size = '512mb'