forked from mattupstate/flask-social-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
29 lines (28 loc) · 968 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.define :flask_social_example_vm do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :hostonly, "192.168.0.10"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "flask-social-example"
chef.json.merge!({
:postgresql => {
:config => {
:listen_addresses => "*"
},
:password => {
:postgres => "password"
},
:pg_hba => [
{:type => 'local', :db => 'all', :user => 'postgres', :addr => nil, :method => 'trust'},
{:type => 'local', :db => 'all', :user => 'all', :addr => nil, :method => 'trust'},
{:type => 'host', :db => 'all', :user => 'all', :addr => 'all', :method => 'trust'}
]
}
})
end
end
end