puppet agent -t 不向标准输出输出任何内容
puppet agent -t does not output anything to stdout
我将服务器和代理更新到版本 4.8 → 5.5,现在我没有输出到控制台,只有日志。
但是 puppet apply
工作得很好。
也许有人知道我怎样才能再次获得输出?
$cat /etc/puppet/puppet.conf
[main]
codedir = /etc/puppetlabs/code
confdir = /etc/puppet
logdir = /var/log/puppet
vardir = /var/lib/puppet
ssldir = $vardir/ssl
rundir = /var/run/puppet
factpath = $vardir/lib/facter
disable_warnings = deprecations
[agent]
environment = production
server = ***
certname = ***
report = true
show_diff = true
logdest = /var/log/puppet.log
[master]
certname = puppet.gegi.co
dns_alt_names = puppet-ec2,gegi-puppet-ec2
environment = production
codedir = /etc/puppetlabs/code
cadir = /var/lib/puppet/ssl/ca
puppet agent
没有向控制台显示消息,因为 puppet.conf
中的 logdest
配置设置告诉它将日志发送到文件。
https://puppet.com/docs/puppet/latest/configuration.html#logdest
如果您希望消息始终进入控制台,请从 puppet.conf
中删除 logdest
变量。如果只是想暂时显示消息,可以使用--logdest
选项来puppet agent
。
puppet agent -t --logdest=console
我将服务器和代理更新到版本 4.8 → 5.5,现在我没有输出到控制台,只有日志。
但是 puppet apply
工作得很好。
也许有人知道我怎样才能再次获得输出?
$cat /etc/puppet/puppet.conf
[main]
codedir = /etc/puppetlabs/code
confdir = /etc/puppet
logdir = /var/log/puppet
vardir = /var/lib/puppet
ssldir = $vardir/ssl
rundir = /var/run/puppet
factpath = $vardir/lib/facter
disable_warnings = deprecations
[agent]
environment = production
server = ***
certname = ***
report = true
show_diff = true
logdest = /var/log/puppet.log
[master]
certname = puppet.gegi.co
dns_alt_names = puppet-ec2,gegi-puppet-ec2
environment = production
codedir = /etc/puppetlabs/code
cadir = /var/lib/puppet/ssl/ca
puppet agent
没有向控制台显示消息,因为 puppet.conf
中的 logdest
配置设置告诉它将日志发送到文件。
https://puppet.com/docs/puppet/latest/configuration.html#logdest
如果您希望消息始终进入控制台,请从 puppet.conf
中删除 logdest
变量。如果只是想暂时显示消息,可以使用--logdest
选项来puppet agent
。
puppet agent -t --logdest=console