opscode-cookbooks/nginx — pull request #14 by kesor (2012-07-03 12:17:21+00:00)
Title: fix ambiguity of nginx['version'] for nginx::source

nginx['version'] is ohai attribute that is empty before nginx is installed.

When nginx['version'] was used on bootstrap, it was empty and installed folder /opt/nginx- is used by nginx::source instead of /opt/nginx-1.0.14.

When nginx['version'] is used on provision when the value is stored in ohai, then changing the value in a role default attribute has no effect and will not upgrade the existing version.

Installing a specific source version now has its own attribute that does not collide with the ohai attribute called nginx['source']['version'].