forked from scottmuc/vagrant-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
33 lines (31 loc) · 962 Bytes
/
Vagrantfile
File metadata and controls
33 lines (31 loc) · 962 Bytes
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
HERE = File.join(File.dirname(__FILE__))
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.define "database" do |cfg|
cfg.vm.forward_port 5432, 5432
cfg.vm.forward_port 80, 8081
cfg.vm.provision :chef_solo do |chef|
chef.cookbooks_path = File.join(HERE, 'cookbooks')
chef.add_recipe("apt")
chef.add_recipe("postgresql::server")
chef.add_recipe("phppgadmin")
chef.json = {
:postgresql => {
:version => "9.1",
:listen_addresses => "*",
:pg_hba => [
"host all all 0.0.0.0/0 md5",
"host all all ::1/0 md5",
],
:users => [
{ :username => "postgres", :password => "postgres",
:superuser => true, :login => true, :createdb => true }
],
}
}
end
end
end