On Tuesday, November 25, 2014 at 10:54 AM, Phil Mocek wrote:
Daniel DeLeo wrote:there are already ones written that do what you’re asking, likeThat's not quite what I'm asking, which is for a simple method toconfigure chef-client to send an e-mail to a particular address ifconvergence fails. Apparently, to use chef-handler-email, I needto install one or more gems on client systems (that sounds like ahalf-day of dependency hell), or use the provided LWRP in a recipeof my creation. If that's the simplest way to get an e-mail fromchef-client on failure, I'm disappointed, and concerned that Ihave miscommunicated my goal.A super simple example is provided in the docs you linked:just want to copy pasta that code.That appears to be a simple example *of how to write a customhandler*. I do not want to write a custom handler. All I reallyneed to customize is the e-mail address to which notificationsshould be sent, like cron's MAILTO setting.If you’re interested in other community-contributed handlers,there’s a list at the bottom of the documentation page:That is preferable to writing my own handler. It still appears torequire writing a recipe. I'm busy writing recipes to deploy andconfigure software and virtual infrastructure. I just want totell chef-client to send an e-mail when it fails.Also, there is a chef_handler cookbook that will manage handlersfor you, some documentation on that is here:That's also useful, and also far more complicated than I hoped itwould be just to get chef-client to send an e-mail on failure.I feel like I must be missing something. My goal, here, seemslikely to be a common one, and Chef generally handles those wellwithout much work on the user's part.Thanks for the suggestions, Daniel. I suspect I will end up usingsome of what you referenced.--Phil Mocek
Archive powered by MHonArc 2.6.16.