[chef] Nagios cookbook fails to install on a new node


Chronological Thread 
  • From: John Dewey < >
  • To:
  • Subject: [chef] Nagios cookbook fails to install on a new node
  • Date: Tue, 28 Aug 2012 19:55:36 -0700

I am receiving the following error, when attempting to install the nagios cookbook for the first time.

NoMethodError: undefined method `sysadmins' for Chef::Resource::Template
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:148:in `method_missing'
/var/chef/cache/cookbooks/nagios/recipes/apache.rb:15:in `block in from_file'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/mixin/recipe_definition_dsl_core.rb:74:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/mixin/recipe_definition_dsl_core.rb:74:in `method_missing'
/var/chef/cache/cookbooks/nagios/recipes/apache.rb:9:in `from_file'

It appears to be failing the compilation phase, due to an undefined variable in recipes/apache.rb.

 14     variables(             
 15       :sysadmins => sysadmins
 16     )

It looks as though the following commit broke it.  The code above was removed from servers.rb and re-factored into apache.rb.  Am I smoken something?  Has anyone gotten this to work.  The change happened way back in April.

commit 74d6547f91c22cce74e74b34e9a18ff3912d8e21

John



Archive powered by MHonArc 2.6.16.

§