繁体   English   中英

当chef-client运行不成功时,如何编写chef_handler来发送邮件?

[英]How to write a chef_handler to send mail when chef-client is run unsuccessfully?

我已经阅读过Chef-Client Handler上的文档:

https://docs.chef.io/resource_chef_handler.html

我想要实现的是在Chef-client在Node上运行期间发生故障时发送邮件。

1> Is there a sample recipe or notes that I could refer to? 
2> Should the SMTP Server be enabled on the Node, or on the CHEF 
Server?
3> Almost all the Knowledge base pages were written for CHEF 13, and those notes doesn't seems to work on CHEF 14, so is there any additional settings that has been done or needs to be done?
4> Is there a sample code with instructions to which I could refer that I could use to set up my recipe??

谢谢

从字面上看,这是https://docs.chef.io/handlers.html#send-email上显示的示例:)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM