forked from eelkeblok/vagrant-lamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
28 lines (23 loc) · 898 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
# -*- 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"
# 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.add_recipe "vagrant_main"
chef.json.merge!({
"mysql" => {
"server_root_password" => "vagrant",
"bind_address" => "0.0.0.0"
}
})
end
config.vm.share_folder "v-root", "/vagrant", ".", :owner=> 'vagrant', :group=>'www-data', :extra => 'dmode=775,fmode=664'
end