Upgrade to Chef 11 and use use_inline_resources.