[chef] Re: Re: Re: Using data generated in a LWRP


Chronological Thread 
  • From: Steven Danna < >
  • To: Bryan Berry < >
  • Cc:
  • Subject: [chef] Re: Re: Re: Using data generated in a LWRP
  • Date: Tue, 3 Apr 2012 07:40:33 -0700

Hi,

On Tue, Apr 3, 2012 at 12:49 AM, Bryan Berry 
< >
 wrote:
> Steven Danna had some pretty strong opinions about where to store data
> returned from an lwrp iirc

I think that ultimately my strong opinion about this is to avoid using
the node object to pass state around resources if it is possible.
However, it is occasionally necessary, and in those cases I don't have
a strong opinion about whether to store the information in a node
attribute or the run_state.

AJ used the ebs resource as an example.  One point worth mentioning,
is that if you end up storing this information in a node attribute,
you should almost certainly follow the ebs resource's example and make
sure that the data in the node attribute serves as a default for a
resource attribute that can be explicitly set if desired.

Cheers,

Steven



Archive powered by MHonArc 2.6.16.

§