- From: "steve ." <
>
- To:
- Subject: [chef] Re: Best Practice to enable report handlers.
- Date: Fri, 25 Jan 2013 10:10:10 -0800
There's no reason not to put them in client.rb. I usually use the LWRP just because it's easier to add and remove them via run list.
Well, I guess there's no reason except that if you somehow distribute a *broken* handler to all your nodes, you then (IIRC from early ~10.0 experimentation) effectively kill their ability to check in until you can roll back the broken handler or the client.rb that calls it.
So using the LWRP / recipe / run list method, your nodes are still checking in and getting updated code. If the code says, "Add this handler" and the handler raises a big stinky exception, you modify the cookbook or take the recipe/role that adds the handler out of the run list.
Archive powered by MHonArc 2.6.16.