4 Vagrant.configure("2") do |config|
6 config.vm.network "forwarded_port", guest: 8089, host: 8089
8 # If true, then any SSH connections made will enable agent forwarding.
9 config.ssh.forward_agent = true
11 #config.vm.synced_folder ".", "/home/vagrant/Nominatim"
13 config.vm.define "ubuntu" do |sub|
14 sub.vm.box = "ubuntu/trusty64"
15 sub.vm.provision :shell, :path => "vagrant/ubuntu-trusty-provision.sh"
17 config.vm.define "ubuntu-php7" do |sub|
18 sub.vm.box = "ubuntu/trusty64"
19 sub.vm.provision :shell, :path => "vagrant/ubuntu-trusty-php7-provision.sh"
21 config.vm.define "centos" do |sub|
22 sub.vm.box = "bento/centos-7.2"
23 sub.vm.provision :shell, :path => "vagrant/install-on-centos-7.sh"
26 # configure shared package cache if possible
27 #if Vagrant.has_plugin?("vagrant-cachier")
28 # config.cache.enable :apt
29 # config.cache.scope = :box
33 config.vm.provider "virtualbox" do |vb|
35 vb.customize ["modifyvm", :id, "--memory", "2048"]
39 # config.vm.provider :digital_ocean do |provider, override|
40 # override.ssh.private_key_path = '~/.ssh/id_rsa'
41 # override.vm.box = 'digital_ocean'
42 # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
45 # # provider.token = 'YOUR TOKEN'
46 # provider.image = 'ubuntu-14-04-x64'
47 # provider.region = 'nyc2'
48 # provider.size = '512mb'