From 58541e416172af9c2054758ea03ce826772af855 Mon Sep 17 00:00:00 2001 From: Melissa McEwen Date: Thu, 1 Oct 2015 16:00:31 -0500 Subject: [PATCH 1/5] Adding hosts configuration info to Readme.md I had a bit of trouble with this, so I thought it would be helpful for others to add this information. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 51ae708e..22991e98 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: -------------- @@ -62,6 +63,8 @@ Installed software: Notes ----- +### Accessing via your local web browser +The default host is local.dev, in order to get it to work on your system you will probably need to edit your hosts file (/private/etc/hosts in Macs, c:\Windows\System32\Drivers\etc\hosts in Windows for example). Then to access the installed assets such as PHPMyAdmin you'll need to go through the configured ports, which by default is 8080, so the way to access that would be local.dev:8080/phpmyadmin. ### Apache virtual hosts From 1073509f8f06c9bf1fdb8aaf245ce33a9f3f0a71 Mon Sep 17 00:00:00 2001 From: Melissa McEwen Date: Mon, 5 Oct 2015 12:16:45 -0500 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22991e98..9bd8de7f 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Installed software: Notes ----- ### Accessing via your local web browser -The default host is local.dev, in order to get it to work on your system you will probably need to edit your hosts file (/private/etc/hosts in Macs, c:\Windows\System32\Drivers\etc\hosts in Windows for example). Then to access the installed assets such as PHPMyAdmin you'll need to go through the configured ports, which by default is 8080, so the way to access that would be local.dev:8080/phpmyadmin. +The default host is local.dev, in order to get it to work on your system you will probably need to edit your hosts file (/private/etc/hosts in Macs, c:\Windows\System32\Drivers\etc\hosts in Windows for example) to map 192.168.33.10 to local.dev. Then to access the installed assets you can go to local.dev. For example phpmyadmin is at local.dev/phpmyadmin and a file in public/local.dev/MYSITE can be accessed at local.dev/MYSITE. ### Apache virtual hosts From 0c45c806ddd3c792baf76b8d9df1a9dea42fac0e Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 7 Feb 2016 16:33:47 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9bd8de7f..2b057b4e 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,6 @@ Installed software: Notes ----- -### Accessing via your local web browser -The default host is local.dev, in order to get it to work on your system you will probably need to edit your hosts file (/private/etc/hosts in Macs, c:\Windows\System32\Drivers\etc\hosts in Windows for example) to map 192.168.33.10 to local.dev. Then to access the installed assets you can go to local.dev. For example phpmyadmin is at local.dev/phpmyadmin and a file in public/local.dev/MYSITE can be accessed at local.dev/MYSITE. ### Apache virtual hosts @@ -73,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 @@ -87,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: @@ -115,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 From d3ee16333f11da498beaea05ac8ef42946ddc1b2 Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 7 Feb 2016 17:56:00 +0200 Subject: [PATCH 4/5] Add `chef.nodes_path` for Chef Zero, fix #134 Fixes breaking change introduced with Vagrant 1.8.0 --- .gitignore | 2 ++ Vagrantfile | 3 ++- nodes/.gitkeep | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 nodes/.gitkeep 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/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 From aaea5e84470877c796922c6965769c7b5f80b058 Mon Sep 17 00:00:00 2001 From: Sergey Storchay Date: Sun, 7 Feb 2016 18:02:19 +0200 Subject: [PATCH 5/5] Update CHANGELOG.md for 1.0.3 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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