Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running recipe on AWS Opsworks #403

laukamp opened this issue Dec 3, 2015 · 3 comments


None yet
4 participants
Copy link

commented Dec 3, 2015


I'm having this error running the default recipe on amazon AWS Opsworks.

Any idea to solve or fix it?

Thanks you very much

Recipe Compile Error in /var/lib/aws/opsworks/cache.stage2/cookbooks/elasticsearch/libraries/provider_configure.rb


undefined method `provides' for ElasticsearchCookbook::ConfigureProvider:Class

Cookbook Trace:

/var/lib/aws/opsworks/cache.stage2/cookbooks/elasticsearch/libraries/provider_configure.rb:5:in <class:ConfigureProvider>' /var/lib/aws/opsworks/cache.stage2/cookbooks/elasticsearch/libraries/provider_configure.rb:2:in<top (required)>'

Relevant File Content:


1: # Chef Provider for configuring an elasticsearch instance
2: class ElasticsearchCookbook::ConfigureProvider < Chef::Provider::LWRPBase
3: include ElasticsearchCookbook::Helpers
5>> provides :elasticsearch_configure
7: def whyrun_supported?
8: false
9: end
11: action :manage do
12: # lookup existing ES resources
13: es_user = find_es_resource(run_context, :elasticsearch_user, new_resource)
14: es_install = find_es_resource(run_context, :elasticsearch_install, new_resource)


This comment has been minimized.

Copy link

commented Dec 3, 2015

Versions of this cookbook >= 1.0 don't support Chef 11, which OpsWorks runs. You need to downgrade to the v0.3.x branches...and bug your AWS TAM about supporting a modern version of Chef on OpsWorks. 😄


This comment has been minimized.

Copy link

commented Dec 3, 2015

Indeed, please use an older version of this cookbook, as Chef 11.x is quite old now. We test on many Chef versions, but they're all 12.x or higher.

@martinb3 martinb3 closed this Dec 3, 2015


This comment has been minimized.

Copy link

commented Dec 23, 2015

Opsworks now supports Chef 12 stacks for Linux. I have created a wrapper cookbook for a Chef 12 stack and it works great. But you must specify Chef 12 in your stacks config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.