[chef] RE: Re: Passing variables between recipes?


Chronological Thread 
  • From: Kevin Keane Subscription < >
  • To: < >
  • Subject: [chef] RE: Re: Passing variables between recipes?
  • Date: Fri, 19 Dec 2014 10:55:45 -0800

Title: RE: [chef] Re: Passing variables between recipes?

Ah, thanks for that pointer! I found that the jenkins cookbook seems to be using this mechanism, so now I have a sample to work off of.


Thanks!


Kevin Keane

The NetTech

http://www.4nettech.com

Our values: Privacy, Liberty, Justice

See https://www.4nettech.com/corp/the-nettech-values.html


-----Original message-----
From: AJ Christensen < >
Sent: Friday 19th December 2014 0:33
To:
Subject: [chef] Re: Passing variables between recipes?

You can use the node.run_state and store a hash in there.

cheers,

--aj

On Fri, Dec 19, 2014 at 9:31 PM, Kevin Keane Subscription
< > wrote:
> I'm sure that this must be an FAQ but I can't really find the answer.
>
>
> I am working with an application-cookbook/wrapper-cookbook pattern. Usually,
> in this pattern the wrapper cookbook sets up some attributes, and then calls
> the application cookbook to do the work.
>
>
> In my case, I do not want to use attributes to pass the data from the
> wrapper to the application cookbook. Specifically, I dont' want the data to
> be saved in the node (the data in question is the password to a MySQL
> database).
>
>
> I also would like to avoid using a data bag simply because it seems like
> code smell. Only the wrapper cookbook should "know" where the data is coming
> from.
>
>
> What are my options?
>
>
> Kevin Keane
>
> The NetTech
>
> http://www.4nettech.com
>
> Our values: Privacy, Liberty, Justice
>
> See https://www.4nettech.com/corp/the-nettech-values.html
>
>



Archive powered by MHonArc 2.6.16.

§