[chef] Re: Passing values from one Chef resource to another


Chronological Thread 
  • From: Noah Kantrowitz < >
  • To:
  • Subject: [chef] Re: Passing values from one Chef resource to another
  • Date: Thu, 30 May 2013 17:52:19 -0700

You can simplify run_context.resource_collection.lookup("log[update_target]") 
to resources('log[update_target]'). You can also combine steps 2 and 3 unless 
there is a pressing reason not to.

--Noah

On May 30, 2013, at 5:49 PM, Cary Penniman 
< >
 wrote:

> Ohai, Chefs!
> 
> I have a ruby_block that calculates a value which I then want to use in 
> another, say 'mount', resource.  Is there a documented way or best practice 
> on how to do this?
> 
> I could not find anything documented anywhere, so I wrote something up:
> 
> http://cpenniman.blogspot.com/2013/05/passing-values-from-one-chef-resource.html
> 
> Thoughts? Suggestions? Criticisms?
> 
> Cheers!
> 
> -Cary P




Archive powered by MHonArc 2.6.16.

§