Skip to content

Commit 2cb248e

Browse files
committed
Updated for Vagrant 2
1 parent 580c989 commit 2cb248e

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vagrant-chef-wordpress
22

3-
A shortcut to a Wordpress dev environment on a Vagrant VirtualBox provisioned with Chef.
3+
A shortcut to a Wordpress dev environment on a Vagrant VirtualBox provisioned with Chef. Updated to support Vagrant 2 (1.2) configuration.
44

55
## Usage
66

Vagrantfile

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
# -*- mode: ruby -*-
22
# vi: set ft=ruby :
33

4-
Vagrant::Config.run do |config|
4+
Vagrant.configure("2") do |config|
55
config.vm.box = "precise64"
66
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
77

88
# Uncomment the next line if you like to watch.
99
# config.vm.boot_mode = :gui
1010

1111
# Port 8000 on the host will go to port 80 on the Vagrant box
12-
config.vm.forward_port 80, 8000, { :auto => true }
12+
config.vm.network :forwarded_port, guest: 80, host: 8000, auto_correct: true
1313

1414
# Here's a folder for passing stuff back and forth
15-
config.vm.share_folder "v-data", "/home/vagrant/host_shared", "./shared"
15+
config.vm.synced_folder "./shared", "/home/vagrant/host_shared"
1616

1717
config.vm.provision :chef_solo do |chef|
1818
chef.json = {
1919
:mysql => {
20-
:server_root_password => "open sesame ha ha ha",
21-
:server_repl_password => "open sesame ha ha ha",
22-
:server_debian_password => "open sesame ha ha ha"
20+
:server_root_password => "six pasta obsessed wreck",
21+
:server_repl_password => "six pasta obsessed wreck",
22+
:server_debian_password => "six pasta obsessed wreck"
2323
}
2424
}
2525
chef.cookbooks_path = "cookbooks"
26-
chef.data_bags_path = "data_bags"
2726
chef.add_recipe "apt"
2827
chef.add_recipe "ohai"
2928
chef.add_recipe "configure"

data_bags/git/ssh_keys.json.dist

-8
This file was deleted.

0 commit comments

Comments
 (0)