engineyard/ey-cloud-recipes — pull request #100 by jimneath (2013-05-23 11:21:41+00:00)
Title: [CC-321] Update recipes to work in both chef 0.6 and chef 10.

Description of your patch
-------------

Updates the repository to work with chef 0.6 and chef 10. Essentially does this by patching chef 0.6 to understand attributes defined via chef syntax:

```
default[:owner_name] = node[:users].first[:username]
```

Using the following code:

https://github.com/engineyard/ey-cloud-recipes/blob/201ae12e03e8e8f15602141222da41b20e7f59b4/cookbooks/main/libraries/chef_06.rb

Updated any recipe using attributes to use the same syntax.

Updates the ruby_block library to only run run when running on Chef 0.6 as it causes conflicts with Chef 10.

Description of testing done
-------------

Booted a chef 0.6 env and tested the sidekiq, redis, postgres_extensions and elastic search recipes and then ensured that everything was setup and running as expected and chef ran without issues.

Booted a chef 10 env and repeated the above steps.

QA Instructions
-------------

As above.