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


#1

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)


#2

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:

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?):

Understanding lwrp development from jtimberman

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. https://github.com/fooforge/
XING. http://www.xing.com/profile/Mike_Adolphs


#3

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


#4

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