It might just be me doing something horribly wrong, but I seem to be unable to use custom recipes in Chef / AWS OpsWorks deploy hooks:
# before_symlink.rb include_recipe 'supervisor'
OpsWorks deploy fails with the following error:
NoMethodError ------------- No resource or method named `include_recipe' for `Chef::Provider::Deploy::Timestamped ""'
We're using Chef 11.10. Any ideas why this might be happening?
We're using this cookbook. The default recipe installs Supervisord, and so far it's working OK. We run that during the Setup phase.
Trouble comes when attempting to use the
supervisor_service resource from the same cookbook during the deploy hook. The error message in this case is:
No resource or method named `supervisor_service' for
The first error described above comes when attempting to include the recipe using