可能重复:
报警失败的 Puppet 状态
如何设置 Puppet 以将失败报告通过电子邮件发送到某个地址?
我已经puppet.conf
这样设置了
[master]
server = puppet.site.net
[main]
#dns_alt_names = puppet.site.net
report = true
#pluginsync = true
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
我有看过一个帖子.但它适用于一切。
我只需要故障。主服务器和客户端均需要故障。
有人能帮我设置一个有效的配置和设置吗?
答案1
您将有更多机会使用领班以此目的。
如果您可以使用 Ruby 编写代码,您可以在 Foreman 中添加更多功能,以便在发生非常具体的错误或事件时通过电子邮件发送电子邮件,以及发送给不同的人等等。