如何永久禁用 Puppet 上的 yaml 文件?
How do I permanently disable yaml files on puppet?
以前从未发生过,但由于这些傀儡报告,我的服务器突然将 运行 排除在 space 之外。
puppet.conf 文件中的 reports=none 是否可以自动禁用 .yaml 报告文件的生成?或者有更好的方法吗?
我们是否需要这些 .yaml 文件?如果我将它们全部删除,它们会影响什么吗?
Puppet 有相当不错的在线文档,包括该软件的历史版本。您可以在此处找到报告功能的详细概述:https://docs.puppetlabs.com/guides/reporting.html. A bit more detail is provided in the relevant section of the manual proper, and the configuration reference provides some detail on the relevant configuration settings.
报告的一些可配置方面是:
代理是否发送报告 [配置文件 [agent]
部分中的 report
参数]。这是基于每个代理配置的。默认情况下,他们会发送报告。
master 对其收到的报告做了什么[配置文件 [master]
部分中的 reports
参数]。默认是(仅)使用 store
报告处理程序,它将它们转储到配置的报告目录中的 YAML 文件。
Can reports=none inside the puppet.conf file, auto disable the generation of .yaml report files?
没有记录“none
”处理程序,但您可以编写和插入自定义报告处理程序,如文档中所述。 none
处理程序应该很容易编写,但请参阅下文。
Or is there a better way of doing it?
我建议您首先将代理配置为不发送报告。对于所有相关人员和机器来说,这应该减少工作量。通过在每个代理的 Puppet 配置文件的 [agent]
部分中设置 report = false
(注意:单数 "report")来做到这一点。之后您可能需要重新启动代理。
Will we ever need these .yaml files and do they affect anything if I delete all of them?
它们是为了您的利益。如果您对它们没有用,那么您可以安全地删除它们。
以前从未发生过,但由于这些傀儡报告,我的服务器突然将 运行 排除在 space 之外。 puppet.conf 文件中的 reports=none 是否可以自动禁用 .yaml 报告文件的生成?或者有更好的方法吗? 我们是否需要这些 .yaml 文件?如果我将它们全部删除,它们会影响什么吗?
Puppet 有相当不错的在线文档,包括该软件的历史版本。您可以在此处找到报告功能的详细概述:https://docs.puppetlabs.com/guides/reporting.html. A bit more detail is provided in the relevant section of the manual proper, and the configuration reference provides some detail on the relevant configuration settings.
报告的一些可配置方面是:
代理是否发送报告 [配置文件
[agent]
部分中的report
参数]。这是基于每个代理配置的。默认情况下,他们会发送报告。master 对其收到的报告做了什么[配置文件
[master]
部分中的reports
参数]。默认是(仅)使用store
报告处理程序,它将它们转储到配置的报告目录中的 YAML 文件。
Can reports=none inside the puppet.conf file, auto disable the generation of .yaml report files?
没有记录“none
”处理程序,但您可以编写和插入自定义报告处理程序,如文档中所述。 none
处理程序应该很容易编写,但请参阅下文。
Or is there a better way of doing it?
我建议您首先将代理配置为不发送报告。对于所有相关人员和机器来说,这应该减少工作量。通过在每个代理的 Puppet 配置文件的 [agent]
部分中设置 report = false
(注意:单数 "report")来做到这一点。之后您可能需要重新启动代理。
Will we ever need these .yaml files and do they affect anything if I delete all of them?
它们是为了您的利益。如果您对它们没有用,那么您可以安全地删除它们。