1

When writing Chef recipes, it often becomes useful to abstract some common functionality into a reusable resource or library. According to its documentation, Chef seems to provide two very similar ways of doing this: Lightweight Resource Providers and Definitions.

What are the practical differences between these methods (i.e. what purpose do LWRPs serve that Definitions do not, and vice-versa), and under what conditions would I want to use one over the other? At first glance, they seem to be almost identical.

Ajedi32
  • 45,670
  • 22
  • 127
  • 172
  • 4
    possible duplicate of [chef libraries or definitions?](http://stackoverflow.com/questions/21725768/chef-libraries-or-definitions) – sethvargo Aug 21 '14 at 19:21
  • 1
    Not exactly a duplicate per se, but answered by the accepted answer there. – sirosen Sep 04 '14 at 01:49

0 Answers0