-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
69 lines (58 loc) · 2.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Setup a TLD for the box
# !!!! REQUIRES !!!!! A: sudo vagrant dns --install OR rvmsudo vagrant dns --install (for rvm users) to make it work !!!!
# box_tld="devel"
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.host_name = "magento.local"
# more memory for the VM
config.vm.customize ["modifyvm", :id, "--memory", 512]
# configure the TLD
# config.dns.tld = box_tld
# config.dns.patterns = [/^.*.#{box_tld}$/]
# !!!! use: rvmsudo vagrant dns --install
config.vm.network :hostonly, "192.168.13.37"
# Use symbilic links
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1"]
# NFS Folders ncomment for better performance (NOT AVAILABLE on Windows-Systems)
#config.vm.share_folder "vagrant-root", "/vagrant", ".", :nfs => true
config.vm.provision :chef_solo do |chef|
# Tell chef what recipe to run. In this case, the `main` recipe does all the magic.
chef.add_recipe("main")
# You may also specify custom JSON attributes:
chef.json = {
#'tld' => box_tld,
'vhost_root' => "/vagrant/sites/default",
'magento' => {
'db_user' => "root",
'db_password' => "",
'db_name' => "magedev_db",
'db_host' => "localhost",
'db_source_dir' => "/vagrant/db_import",
'db_source_file' => "magedev_db.sql",
'admin_user' => {
'firstname' => 'mageadmin',
'lastname' => 'mageadmin',
'username' => 'mageadmin',
'email' => '[email protected]',
'password' => 'password1'
}
},
'apache' => {
'prefork' => {
'startservers' => 1,
'minspareservers' => 1
},
'default_site_enabled' => false
},
# Override attributes here. Each cookbook will specify which attributes to override.
"mysql" => {
"server_root_password" => "",
"server_repl_password" => "",
"server_debian_password" => ""
},
}
end
end