-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVagrantfile
More file actions
42 lines (32 loc) · 1.02 KB
/
Vagrantfile
File metadata and controls
42 lines (32 loc) · 1.02 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "opscode-precise64-provisionerless"
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box"
config.vm.network :forwarded_port, guest:80, host: 8080
config.vm.synced_folder "./", "/var/www/wordpress",
owner: "www-data", group: "www-data"
config.vm.provider "virtualbox" do |vb|
vb.name = "Wordpress"
end
config.berkshelf.enabled = true
config.omnibus.chef_version = :latest
if Vagrant.has_plugin? "vagrant-cachier"
config.cache.scope = :box
end
config.vm.provision :chef_solo do |chef|
chef.add_recipe "apt"
chef.add_recipe "wordpress"
chef.json = {
:mysql => {
:server_debian_password => "wordpress",
:server_root_password => "wordpress",
:server_repl_password => "wordpress"
},
:wordpress => {
:owner => "www-data",
:group => "www-data"
}
}
end
end