forked from johnthedebs/basicproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
58 lines (53 loc) · 1.92 KB
/
Vagrantfile
File metadata and controls
58 lines (53 loc) · 1.92 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.synced_folder ".", "/var/www/basicproject/basicproject/"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.customize [
"modifyvm", :id,
"--name", "basicproject",
"--memory", "512",
"--nictype1", "Am79C973"
]
end
config.vm.provision :shell, :inline => "gem install chef --no-ri --no-rdoc"
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "main::default"
#chef.add_recipe "main::security"
chef.add_recipe "main::python"
chef.add_recipe "main::nodejs"
chef.add_recipe "main::compass"
chef.add_recipe "main::supervisor"
chef.add_recipe "main::postgresql"
chef.add_recipe "main::nginx"
chef.add_recipe "main::site-setup"
chef.json = {
"base_packages" => ["git-core", "bash-completion"],
"users" => {
"basicproject" => {
"id" => 1003,
"full_name" => "basicproject",
"key" => ""
},
},
"groups" => {
"www-pub" => {
"gid" => 1004,
"members" => ["root", "basicproject", "www-data", "vagrant"]
}
},
"ubuntu_python_packages" => ["python-setuptools", "python-dev", "python-software-properties"],
"pip_python_packages" => {
"virtualenv" => "1.11.1",
"virtualenvwrapper" => "4.2",
"pip" => "1.5.1",
"mercurial" => "2.8.2"
},
}
end
end