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
11 if ENV['CHECKOUT'] != 'y' then
12 config.vm.synced_folder ".", "/home/vagrant/Nominatim"
15 config.vm.define "ubuntu" do |sub|
16 sub.vm.box = "ubuntu/trusty64"
17 sub.vm.provision :shell, :path => "vagrant/ubuntu-trusty-provision.sh"
19 config.vm.define "ubuntu-php7" do |sub|
20 sub.vm.box = "ubuntu/trusty64"
21 sub.vm.provision :shell, :path => "vagrant/ubuntu-trusty-php7-provision.sh"
23 config.vm.define "centos" do |sub|
24 sub.vm.box = "bento/centos-7.2"
25 sub.vm.provision :shell, :path => "vagrant/install-on-centos-7.sh"
28 # configure shared package cache if possible
29 #if Vagrant.has_plugin?("vagrant-cachier")
30 # config.cache.enable :apt
31 # config.cache.scope = :box
35 config.vm.provider "virtualbox" do |vb|
37 vb.customize ["modifyvm", :id, "--memory", "2048"]
41 # config.vm.provider :digital_ocean do |provider, override|
42 # override.ssh.private_key_path = '~/.ssh/id_rsa'
43 # override.vm.box = 'digital_ocean'
44 # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
47 # # provider.token = 'YOUR TOKEN'
48 # provider.image = 'ubuntu-14-04-x64'
49 # provider.region = 'nyc2'
50 # provider.size = '512mb'