-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathVagrantfile
55 lines (45 loc) · 1.63 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
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
# config.vm.boot_mode = :gui
Vagrant.require_version ">= 1.5.2"
# Memory setting
config.vm.provider "virtualbox" do |vb|
vb.customize([
'modifyvm', :id,
'--memory', '1024',
])
end
# Network setting for Vagrant
config.vm.network "private_network", ip: "10.0.0.10"
config.vm.network :forwarded_port, host: 80, guest: 80, auto_correct: true
config.vm.network :forwarded_port, host: 3306, guest: 3306, auto_correct: true
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provision :chef_solo do |chef|
# This path will be expanded relative to the project directory
chef.cookbooks_path = ["cookbooks/site-cookbooks", "cookbooks/drupal-cookbooks"]
chef.add_recipe "vim"
chef.roles_path = "roles"
# This role represents our default Drupal development stack.
chef.add_role("drupal_lamp_dev")
chef.json.merge!({
:www_root => '/vagrant/public',
:mysql => {
:server_root_password => "root", # TODO Hardcoded MySQL root password.
:allow_remote_root => true,
:bind_address => "0.0.0.0"
},
:hosts => {
:localhost_aliases => ["dev-site.vm"]
},
:drush => {
:install_method => 'pear',
:version => '6.0',
}
})
end
end