- From: Alexandre Russel <
>
- To:
- Subject: [chef] Writing a provider
- Date: Fri, 25 Oct 2013 10:39:16 +0200
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
- [chef] Writing a provider, Alexandre Russel, 10/25/2013
Archive powered by MHonArc 2.6.16.