默认情况下,Puppet每次执行时都可以在默认目录/var/lib/Puppet/reports/
中创建报告。如果Puppet执行相当频繁,根据文件系统的大小,这可能会在磁盘空间方面产生一些问题,因为这种文件大小较小的报告会占用磁盘空间,更重要的是,创建的每个文件都会占用inode。
Puppet YAML报告:
# ls /var/lib/puppet/reports/webserver.localdomain 201401142321.yaml 201401142322.yaml
要禁用全局Puppet的报告系统,我们需要编辑其配置文件 /etc/puppet/puppet.conf
并添加以下行:
reports=none
例如,以下是禁用报告系统的基本puppet配置文件:
# cat /etc/puppet/puppet.conf [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates reports=none [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY
日期:2020-07-07 20:54:40 来源:oir作者:oir