[chef] Re: Re: Re: compile vs execution phase


Chronological Thread 
  • From: Lamont Granquist < >
  • To:
  • Subject: [chef] Re: Re: Re: compile vs execution phase
  • Date: Sun, 05 Jan 2014 22:05:17 -0700

On 1/5/14 6:50 PM, Bill Warner wrote:
I was thinking of extending the directory resource with an lwrp that can take a wild card. Not sure if it will do what I want, but If I could have an lwrp that could create directories based on a path of /data/*/cassandra/data then evaluate at execution time and create all the data dirs it may help.

I think the idea of Attributes being the desired state of the node, then the execution phase getting it to that state is something I still need to figure out how to work with.

Is there something I'm missing to the chef architecture? One recipe that depends on another recipe executing before it's attributes could even be inferred doesn't seem to me like an obscure use case. Is a multi-pass convergence something I should expect as necessary?
Attributes should really /be/ the desired state of the node, but you're making those attributes be dynamic and depend on prior resources getting executed. I'm not quite sure exactly why you need this layer of indirection, since it seems like it'd be better to have the inputs that feed the cassandra cookbook and setup the drives in the /data subdirectory also feed creating the subdirectories?





Archive powered by MHonArc 2.6.16.

§