/
Vagrantfile.dist
62 lines (53 loc) · 1.65 KB
/
Vagrantfile.dist
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
59
60
61
62
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
Vagrant::Config.run do |config|
config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
config.vm.boot_mode = :headless
config.vm.network :hostonly, "192.168.3.100"
config.vm.host_name = "vagrant"
#config.vm.share_folder "project", "/var/www/project", "../project"
config.vm.customize ["modifyvm", :id, "--memory", 512]
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.json = {
# "main" => {
# "apache2" => {
# "vhost" => [{
# "name" => "project",
# "server_name" => "project.local",
# "docroot" => "/var/www/project/web",
# "dirindex" => "app.php",
# "template" => "vhost.conf.erb"
# }]
# },
# "database" => ["project"],
# "dbuser" => [
# {
# "name" => "root",
# "password" => "root",
# "host" => "%",
# "privileges" => [:all]
# },
# {
# "name" => "project",
# "password" => "project",
# "host" => "localhost",
# "database_name" => "project",
# "privileges" => [:all]
# }
# ],
# "buildscript" => [
# "python /var/www/project/bin/build.py"
# ],
# "redis" => true,
# "coffeescript" => true,
# },
# "mysql" => {
# "server_root_password" => "root"
# }
}
chef.add_recipe("main")
end
end