-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
38 lines (30 loc) · 919 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
30
31
32
33
34
35
36
37
38
Vagrant::Config.run do |config|
config.vm.box = "quantal64-rl"
config.vm.box_url = "http://dl.dropbox.com/u/1418806/vagrant-ubuntu-quantal64-rl.box"
config.vm.network :hostonly, "33.33.33.10"
config.vm.forward_port 80, 8080
config.vm.customize [
"modifyvm", :id,
"--name", "example bookshop",
"--cpus", "4",
"--memory", "2048"
]
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/web", "1"]
config.ssh.forward_agent = true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["Build/Chef/cookbooks", "Build/Chef/site-cookbooks"]
chef.add_recipe "robertlemke-webserver"
chef.add_recipe "robertlemke-bookshop"
chef.json = {
mysql: {
server_root_password: "password",
server_repl_password: "password",
server_debian_password: "password",
bind_address: '127.0.0.1'
},
apache: {
default_site_enabled: true
}
}
end
end