-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
47 lines (33 loc) · 1.25 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
37
38
39
40
41
42
43
44
45
46
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :hostonly, "33.33.33.10"
config.vm.forward_port 8000, 8000
config.vm.customize ["modifyvm", :id, "--rtcuseutc", "on"]
# Fix VM DNS issues on Ubuntu
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
config.vm.provision :chef_solo do |chef|
config.vm.customize ["modifyvm", :id, "--memory", 2048]
#chef.recipe_url = "http://cloud.github.com/downloads/Mathew/chef_recipes/cookbooks.tar.gz"
#chef.cookbooks_path = [:vm, "cookbooks"]
chef.cookbooks_path = ["cookbooks"]
chef.add_recipe "main"
chef.add_recipe "python"
chef.add_recipe "postgres"
chef.json.merge!({
:project_name => "psychoanalysis",
:user_name => "vagrant",
:user_group => "vagrant",
:dev_env => true,
:postgres_password => "postgres",
:project_db_user => "psychoanalysis",
:project_db_pass => "psychoanalysis",
:project_db_name => "psychoanalysis",
:supervisor_user => "supervisor",
:supervisor_password => "password",
:system_packages => ['libjpeg62-dev'],
:python_global_packages => [],
:python_packages => [],
})
end
end