forked from eelkeblok/vagrant-lamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (28 loc) · 1.24 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Set box configuration
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.customize ["modifyvm", :id, "--memory", 2048]
# Assign this VM to a host-only network IP, allowing you to access it via the IP.
config.vm.network :hostonly, "33.33.33.10"
# Enable provisioning with chef solo, specifying a cookbooks path (relative
# to this Vagrantfile), and adding some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.data_bags_path = "data_bags"
# chef.log_level = :debug
chef.add_recipe "vagrant_main"
chef.json.merge!({
"mysql" => {
"server_root_password" => "vagrant",
"bind_address" => "0.0.0.0",
"data_dir" => "/vagrant/mysql"
}
})
end
config.vm.share_folder "v-root", "/vagrant", ".", :extra => 'dmode=775,fmode=664', :nfs => true
# /var/log over NFS will not work, probably something to do with trying to mount something on a location that already exists.
config.vm.share_folder "v-logs", "/var/log", "vagrant-logs", :owner=> 'vagrant', :group=>'www-data', :extra => 'dmode=775,fmode=664'
end