File: Vagrantfile

package info (click to toggle)
pgrouting 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,232 kB
  • ctags: 1,566
  • sloc: cpp: 74,626; ansic: 6,036; sql: 2,889; sh: 635; perl: 523; makefile: 67
file content (36 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download
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