forked from pgRouting/pgrouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (26 loc) · 1 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
pgbox = ENV['BOX'] || "precise64"
postgres = ENV['POSTGRESQL_VERSION'] || "9.1"
postgis = ENV['POSTGIS_VERSION'] || "2.0"
Vagrant.configure("2") do |config|
# Vagrant box configuration
case pgbox
when "pgr32"
config.vm.box = "pgr32"
config.vm.box_url = "http://s3.amazonaws.com/pgrouting/pgrouting-precise32.box"
when "pgr64"
config.vm.box = "pgr64"
config.vm.box_url = "http://s3.amazonaws.com/pgrouting/pgrouting-precise64.box"
when "precise32", "precise64"
config.vm.box = pgbox
config.vm.box_url = "http://files.vagrantup.com/%s.box" % [pgbox]
end
# Bootstrap script
config.vm.provision :shell, :path => "tools/vagrant/bootstrap.sh", :args => "%s %s" % [postgres, postgis]
# Forward SSH agent to host
config.ssh.forward_agent = true
# Create synced folder for GnuPG keys and within home directory
config.vm.synced_folder "../", "/home/vagrant/repos"
config.vm.synced_folder "~/.gnupg", "/home/vagrant/.gnupg"
end