diff --git a/.gitignore b/.gitignore index 5ed08f08..6d891db8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ !/data_bags/sites/local.json /public !/public/local.dev +/nodes/* +!/nodes/.gitkeep diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d9d4ffb..b87b26c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [1.0.3] - 2016-02-07 + +### Fixed +- Add `chef.nodes_path` for Chef Zero. Fix breaking change introduced with Vagrant 1.8.0 + +### Changed +- Update README.md with `hosts` file information + ## [1.0.2] - 2015-09-25 ### Fixed diff --git a/README.md b/README.md index 51ae708e..2b057b4e 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Go to the repository folder and launch the box $ cd [repo] $ vagrant up + What's inside: -------------- @@ -70,9 +71,18 @@ directory. The docroot of the new virtual host will be a directory within the `public/` folder matching the `host` you specified. Alternately you may specify a docroot explicitly by adding a `docroot` key in the json file. +Default preconfigured host is `local.dev`. + +### Accessing your hosts via your local web browser + +In order to access vagrant hosts via your local browser you will need to edit your hosts file (`/private/etc/hosts` in Macs, `c:\Windows\System32\Drivers\etc\hosts` in Windows, `/etc/hosts` in Linux). +All hosts should be mapped to `192.168.33.10`: + + 192.168.33.10 local.dev someyourotherhost.dev + ### MySQL -The guests local 3306 port is available on the host at port 33066. It is also available on every domain. Logging in can be done with username=root, password=vagrant. +The guests local 3306 port is available on the host at port 33066. It is available on every domain. Logging in can be done with username=root, password=vagrant. ### phpMyAdmin @@ -84,8 +94,8 @@ phpMyAdmin is available on every domain. For example: XDebug is configured to connect back to your host machine on port 9000 when starting a debug session from a browser running on your host. A debug session is -started by appending GET variable XDEBUG_SESSION_START to the URL (if you use an -integrated debugger like Eclipse PDT, it will do this for you). +started by either by appending GET variable XDEBUG_SESSION_START to the URL or setting XDEBUG cookie (if you use an +integrated debugger like Eclipse PDT it will do this for you). XDebug is also configured to generate cachegrind profile output on demand by adding GET variable XDEBUG_PROFILE to your URL. For example: @@ -112,7 +122,7 @@ happens to serve webgrind. ### MailHog -ll emails sent via local mail transport are intercepted by [MailHog](http://github.com/mailhog/MailHog). So normally no email would be delivered outside of the virtual machine. Instead you can check messages using web frontend for MailHog, which is running on port 8025 and also available on every domain: +All emails sent via local mail transport are intercepted by [MailHog](http://github.com/mailhog/MailHog). So normally no email would be delivered outside of the virtual machine. Instead you can check messages using web frontend for MailHog, which is running on port 8025 and also available on every domain: http://local.dev:8025 diff --git a/Vagrantfile b/Vagrantfile index e4945f0d..da1b8882 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -52,11 +52,12 @@ Vagrant.configure("2") do |config| end # Enable provisioning with chef zero, specifying a cookbooks path, roles - # path, and data_bags path (all relative to this Vagrantfile), and adding + # path, nodes path and data_bags path (all relative to this Vagrantfile), and adding # some recipes and/or roles. config.vm.provision :chef_zero do |chef| chef.cookbooks_path = ["berks-cookbooks", "cookbooks"] chef.data_bags_path = "data_bags" + chef.nodes_path = "nodes" # List of recipes to run chef.add_recipe "vagrant_main" diff --git a/nodes/.gitkeep b/nodes/.gitkeep new file mode 100644 index 00000000..e69de29b