monitrc definition broken on ubuntu 12.04 with Chef 10.4. #8

Closed
freerobby opened this Issue Jul 4, 2012 · 4 comments

Comments

Projects
None yet
4 participants
Collaborator

freerobby commented Jul 4, 2012

Steps to reproduce:

Create some cookbook with a recipe that has:
"include_recipe 'monit'"
"include_recipe 'monit::postfix'"

Run a chef deploy.

Get:

NameError: undefined local variable or method name' for #<Chef::Recipe:0x7ffb38b81920> /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:56:inmethod_missing'
/var/chef/cache/cookbooks/monit/definitions/monitrc.rb:15:in from_file' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:50:ininstance_eval'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:50:in method_missing' /var/chef/cache/cookbooks/monit/recipes/postfix.rb:3:infrom_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:in load_recipe' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:ininclude_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:ininclude_recipe'
/var/chef/cache/cookbooks/tester/recipes/monit.rb:4:in from_file' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/cookbook_version.rb:578:inload_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:40:in include_recipe' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:ineach'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/language_include_recipe.rb:27:in include_recipe' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:72:inload'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/run_context.rb:69:inload'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:195:in setup_run_context' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:159:inrun'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:239:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:inloop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/client.rb:229:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:inrun'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-client:26
/usr/bin/chef-client:19:in `load'

Collaborator

freerobby commented Jul 4, 2012

I have this fixed here, FYI: shareaholic/chef-monit@dd933ca

I'm making a few feature improvements as well. I'll send a pull request when everything is done.

Owner

apsoto commented Jul 4, 2012

great, thanks

cmer commented Aug 11, 2012

+1

Collaborator

yourabi commented Sep 10, 2014

Hi @freerobby - I assume we can close this PR... please reopen if this is still an issue.

@yourabi yourabi closed this Sep 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment