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.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?
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?
Archive powered by MHonArc 2.6.16.