File: Vagrantfile

package info (click to toggle)
pgrouting 2.3.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,624 kB
  • ctags: 3,244
  • sloc: cpp: 86,010; sql: 30,138; ansic: 9,711; python: 3,105; perl: 1,307; sh: 957; xml: 182; makefile: 126
file content (24 lines) | stat: -rw-r--r-- 713 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
# -*- 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
	config.vm.box = pgbox
	config.vm.box_url = "http://files.vagrantup.com/%s.box" % [pgbox]

  # 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