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 = "bento/centos-7.2"
37 sub.vm.provision :shell do |s|
38 s.path = "vagrant/install-on-centos-7.sh"
44 # configure shared package cache if possible
45 #if Vagrant.has_plugin?("vagrant-cachier")
46 # config.cache.enable :apt
47 # config.cache.scope = :box
51 config.vm.provider "virtualbox" do |vb|
53 vb.customize ["modifyvm", :id, "--memory", "2048"]
57 # config.vm.provider :digital_ocean do |provider, override|
58 # override.ssh.private_key_path = '~/.ssh/id_rsa'
59 # override.vm.box = 'digital_ocean'
60 # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
63 # # provider.token = 'YOUR TOKEN'
64 # provider.image = 'ubuntu-14-04-x64'
65 # provider.region = 'nyc2'
66 # provider.size = '512mb'