Modified version of https://github.com/rightscale/rightscale_cookbooks/tree/master/cookbooks/chef