Any good resource||post on how to get-started and create a LWRP?

Hi,

Since the rage is towards making a LWRP instead of definitions macros, I also want to start.

But the problem is I couldn’t find any good resource or posts to get started and build one off that.

Do anybody have any idea?


@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

Hi Sachin,

well I've just written a simple LWRP for the apt cookbook to enable apt
pinning and based my work on the already existing (apt)resource LWRP.
Might help if you look at the actual code which's not much:
https://github.com/fooforge/apt/commit/f5e00269a62270a555632a68ad1f113ae4ec7f16

I also read the following two pages from the wiki:
http://wiki.opscode.com/display/chef/Lightweight+Resources+and+Providers+(LWRP)
http://wiki.opscode.com/display/chef/Opscode+LWRP+Resources

Joshua Timberman's slides might also help although I didn't read them
thoroughly (is the talk available somewhere?):

Regards,
Mike

On Wed, Apr 4, 2012 at 8:15 PM, Sachin Sagar Rai millisami@gmail.comwrote:

Hi,

Since the rage is towards making a LWRP instead of definitions macros, I
also want to start.

But the problem is I couldn't find any good resource or posts to get
started and build one off that.

Do anybody have any idea?


@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow http://www.sparrowmailapp.com/?sig

--
Mike Adolphs
Stitenstrasse 24
23554 Luebeck

  • Germany -

Mail. mike@fooforge.com
Web. http://fooforge.com/
Github. fooforge (Mike Stojan) · GitHub
XING. http://www.xing.com/profile/Mike_Adolphs

Hello,

On Wed, Apr 4, 2012 at 12:15 PM, Sachin Sagar Rai millisami@gmail.com wrote:

Since the rage is towards making a LWRP instead of definitions macros, I
also want to start.

But the problem is I couldn't find any good resource or posts to get started
and build one off that.

We have a section on building an LWRP in an upcoming release of our
training materials:

The example is contrived, but illustrative. I delivered this to a
training group a couple weeks ago and it was well received.

I have a slightly different version that is more narrative similar to
a blog post or a guide, but I haven't cleaned it up and posted it yet.

--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman

For a simple one I think the supervisor cookbook is great:

On Wed, Apr 4, 2012 at 4:37 PM, Joshua Timberman joshua@opscode.com wrote:

Hello,

On Wed, Apr 4, 2012 at 12:15 PM, Sachin Sagar Rai millisami@gmail.com wrote:

Since the rage is towards making a LWRP instead of definitions macros, I
also want to start.

But the problem is I couldn't find any good resource or posts to get started
and build one off that.

We have a section on building an LWRP in an upcoming release of our
training materials:

The example is contrived, but illustrative. I delivered this to a
training group a couple weeks ago and it was well received.

I have a slightly different version that is more narrative similar to
a blog post or a guide, but I haven't cleaned it up and posted it yet.

--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman