Я уже ознакомился с документацией по 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 :)
На узле весь код обработчика выполняется локально в chef-client
.
Должен ли SMTP-сервер быть включен на узле или на сервере CHEF ?? Я использую Public Managed CHEF для регистрации узлов, и мне было интересно, на какой SMTP-адрес следует ссылаться.