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

Breaks in Chef 10 #149

Closed
ryanwi opened this issue Oct 10, 2014 · 1 comment
Closed

Breaks in Chef 10 #149

ryanwi opened this issue Oct 10, 2014 · 1 comment

Comments

@ryanwi
Copy link

ryanwi commented Oct 10, 2014

Getting error on Chef 10.30.4 and Vagrant 1.6.5

==> default: ================================================================================
==> default: Recipe Compile Error in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/rabbitmq/providers/plugin.rb
==> default: ================================================================================
==> default: NameError
==> default: ---------
==> default: undefined local variable or method `use_inline_resources' for #<Class:0x00000001ad3468>
==> default: Cookbook Trace:
==> default: ---------------
==> default:   /tmp/vagrant-chef-3/chef-solo-1/cookbooks/rabbitmq/providers/plugin.rb:37:in `class_from_file'
==> default:
==> default: Relevant File Content:
==> default: ----------------------
==> default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks/rabbitmq/providers/plugin.rb:
==> default:
==> default:  30:    cmd.run_command
==> default:  31:    Chef::Log.debug "rabbitmq_plugin_enabled?: #{cmdstr}"
==> default:  32:    Chef::Log.debug "rabbitmq_plugin_enabled?: #{cmd.stdout}"
==> default:  33:    cmd.error!
==> default:  34:    cmd.stdout =~ /\b#{name}\b/
==> default:  35:  end
==> default:  36:
==> default:  37>> use_inline_resources
==> default:  38:
==> default:  39:  action :enable do
==> default:  40:    unless plugin_enabled?(new_resource.plugin)
==> default:  41:      execute "rabbitmq-plugins enable #{new_resource.plugin}" do
==> default:  42:        Chef::Log.info "Enabling RabbitMQ plugin '#{new_resource.plugin}'."
==> default:  43:        path plugins_bin_path(true)
==> default:  44:        new_resource.updated_by_last_action(true)
==> default:  45:      end
==> default:  46:    end
==> default:
@jjasghar
Copy link
Contributor

The use_inline_resources was introduced in Chef 11 (thanks @mattray for the info), it looks like we don't test/support Chef 10.

I don't think we are planning on supporting Chef 10 with this cookbook either, so i'm going to close this and make it explicit in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants