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 "centos" do |sub|
18 sub.vm.box = "bento/centos-7.2"
19 sub.vm.provision :shell, :path => "vagrant/centos-7-provision.sh"
22 # configure shared package cache if possible
23 #if Vagrant.has_plugin?("vagrant-cachier")
24 # config.cache.enable :apt
25 # config.cache.scope = :box
29 config.vm.provider "virtualbox" do |vb|
31 vb.customize ["modifyvm", :id, "--memory", "2048"]
35 # config.vm.provider :digital_ocean do |provider, override|
36 # override.ssh.private_key_path = '~/.ssh/id_rsa'
37 # override.vm.box = 'digital_ocean'
38 # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
41 # # provider.token = 'YOUR TOKEN'
42 # provider.image = 'ubuntu-14-04-x64'
43 # provider.region = 'nyc2'
44 # provider.size = '512mb'