[chef] RE: Re: Need info on chef handler warning please?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] RE: Re: Need info on chef handler warning please?
  • Date: Fri, 26 Jun 2015 20:50:03 +0000
  • Accept-language: en-US

I'm using the community chef_handler cookbook. What do I need to do to 
"upgrade the cookbook," which Is my original question.

Another question, inferring from your response, is I shouldn't upgrade the 
cookbook "now" since the Chef 13 format is not compatible with Chef 12?

Chris

-----Original Message-----
From: Daniel DeLeo 
[mailto:
 On Behalf Of Daniel DeLeo
Sent: Friday, June 26, 2015 4:33 PM
To: 

Subject: [chef] Re: Need info on chef handler warning please?

The LWRP in the recipe needs to be updated. Assuming you’re using the 
standard community chef handler cookbook, you don’t need to worry about this, 
aside from upgrading the cookbook before you upgrade to Chef 13.0 (far 
future).  

--
Daniel DeLeo


On Friday, June 26, 2015 at 1:29 PM, Fouts, Chris wrote:

> I’m playing with Chef handlers, and have the following in a recipe, which 
> simple creates an empty /tmp/node_is_bootstrapped.txt file, and it works.
>  
> chef_handler 'Chef::Handler::ReportNodeBootstrapped' do source 
> "/tmp/some_handler.rb"
> supports :report => true
> action :enable
> end
>  
> However, I get this warning
>  
> chef_handler[Chef::Handler::ReportNodeBootstrapped] action 
> enable[2015-06-26T16:09:08-04:00] WARN: Using an LWRP by its name 
> (Chef::Resource::ChefHandler) directly is no longer supported in Chef 13 
> and will be removed. Use Chef::Resource.resource_for_node(node, name) 
> instead.
>  
> Where is the documentation to explain how to do this? IOW, how would the 
> chef_handler resource call change? What do I put in ‘node’ and ‘name’
>  
> Chef_handler ‘Chef::Resource.resource_for_node(node, name)’ do source 
> "/tmp/some_handler.rb"
> supports :report => true
> action :enable
> end
>  
>  
>  
> Chris
>  






Archive powered by MHonArc 2.6.16.

§