ci.chef.wlp icon indicating copy to clipboard operation
ci.chef.wlp copied to clipboard

What is the purpose of this cookbooks imperative design

Open fsimmend opened this issue 11 years ago • 1 comments

Designed this way you cannot use the cookbook to describe the desired state but merely to describe the actions you otherwise would have scripted to reach the state.

The LWRPs should modify the resources to the desired state and if that changes the current state, they should fire their notifiers. Otherwise you cannot use chef to manage that node.

I wonder if this decision was on purpose ?

fsimmend avatar Nov 19 '14 08:11 fsimmend

Hi, you make a good point. We started this, not as Chef experts, so we are looking for this kind of feedback. Can you point to an archetypal LWRP that you see as showing good practice in this area?

hughesj avatar Dec 11 '14 11:12 hughesj