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

undefined method `sensitive' for Chef::Resource::Execute #191

Closed
mickdelaney opened this issue Dec 19, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@mickdelaney
Copy link

commented Dec 19, 2014

I'm getting this error running the cookbook on opsworks:

My cookbook is here:
https://github.com/elevate/elevate-opsworks-rabbitmq

I'm using:

Chef 11.10
Berkshelf 3.2.0

NoMethodError

undefined method `sensitive' for Chef::Resource::Execute

Cookbook Trace:

/var/lib/aws/opsworks/cache.stage2/cookbooks/rabbitmq/providers/user.rb:88:in block (2 levels) in class_from_file' /var/lib/aws/opsworks/cache.stage2/cookbooks/rabbitmq/providers/user.rb:87:inblock in class_from_file'

Resource Declaration:

In /var/lib/aws/opsworks/cache.stage2/cookbooks/rabbitmq_cluster/recipes/default.rb

25: rabbitmq_user node['rabbitmq_cluster']['user'] do
26: password node['rabbitmq_cluster']['password']
27: action :add
28: end
29:

Compiled Resource:

Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/rabbitmq_cluster/recipes/default.rb:25:in `from_file'

rabbitmq_user("admin") do
action [:add]
retries 0
retry_delay 2
cookbook_name "rabbitmq_cluster"
recipe_name "default"
password "adminpasssword"
user "admin"
end

The mysql cookbook seems to have handled it recently:

def sensitive_supported?
Gem::Version.new(Chef::VERSION) >= Gem::Version.new('11.14.0')
end

in this commit:
sous-chefs/mysql@28f33de#diff-38a4aeddb4e620724d3b85362cb8b939

For this issue:

sous-chefs/mysql#246

@jjasghar

This comment has been minimized.

Copy link
Collaborator

commented Dec 19, 2014

Yep, the sensitive resource came in at chef 11.14, the best way is to update chef. we had a issue about this already here: #183

@mickdelaney

This comment has been minimized.

Copy link
Author

commented Dec 19, 2014

sorry guys. should have seen that
regards

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.