On Friday, October 25, 2013 at 1:39 AM, Alexandre Russel wrote:
Hi all,I've read several time the doc an LWRP, but I'm still a bit lost on how to do it. If someone is kind enough to answer a few questions:- are an instance of a provider created for each resource it processes ?
* "The load_current_resource method is used to find a resource" => does this mean I have to write this method ? is it called by chef ?
* "The current_resource method is used to represent a resource " => might be nice to see it in the code snippet, is it the same as @current_resource ?
- where is the normal place to persist downloaded file ?
- is there a way to share state between all resource processing during a chef run:foobar "a"foobar "b"if foobar is supposed doing a long computation can he save it somewhere the first time foobar "a" is processed to be able to reuse it when foobar "b" is processed ?
thanks for your time,Alex
Archive powered by MHonArc 2.6.16.