我们正在运行我们的客户和主人的木偶2.7.11-1ubuntu2.4(Ubuntu 12.04)。客户端似乎没有自动更新,但是当我运行时:
sudo puppet agent --test
一切正常。
客户端上当前正在运行的进程:
root 1764 1 0 Sep10 ? 00:00:05 /usr/bin/ruby1.8 /usr/bin/puppet agent
/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
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
pluginsync=true
[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
[agent]
server=<URL_REMOVED>
configtimeout=300
/var/log/syslog.log
Sep 11 16:12:48 <HOSTNAME_REMOVED> puppet-agent[1764]: Did not receive certificate
Sep 11 16:14:48 <HOSTNAME_REMOVED> puppet-agent[1764]: Did not receive certificate
Sep 11 16:16:49 <HOSTNAME_REMOVED> puppet-agent[1764]: Did not receive certificate
Sep 11 16:18:49 <HOSTNAME_REMOVED> puppet-agent[1764]: Did not receive certificate
Sep 11 16:20:49 <HOSTNAME_REMOVED> puppet-agent[1764]: Did not receive certificate
的/ etc /默认/木偶
# Defaults for puppet - sourced by /etc/init.d/puppet
# Start puppet on boot?
START=yes
# Startup options
DAEMON_OPTS=""
有人知道可能出现什么问题吗?
答案 0 :(得分:2)
我们最近发现了这个问题的原因。
某些节点的puppet.conf中有一个与服务器证书中的主机名不匹配的主机名。
有些节点在联系服务器时也没有使用他们的FQDN,这导致与客户端证书不匹配。我们通过将FQDN添加到/ etc / hosts来修复它:
127.0.1.1 hostename.domain.edu hostename
答案 1 :(得分:0)
看看这个Troubleshooting page。不确定你的问题,但我在日志中看到了类似的错误:“没有收到证书”。就我而言,这些步骤对我有所帮助: 在主跑上
puppet cert clean <NODE NAME>
代理人:
rm -rf $(puppet agent --configprint ssldir)
puppet agent --test