可能重复:
警告失败的 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
我看过一个帖子。但它适用于一切。
我只需要失败。在主人和客户上。
有人可以帮助我进行有效的会议和设置吗?
为此,使用Foreman你会更幸运。
如果您可以使用 Ruby 编写代码,则可以在 Foreman 中添加更多功能,以便通过电子邮件发送非常具体的错误或事件,以及发送给不同的人等。