Puppet 400启动远程代理时出错

时间:2014-10-07 22:04:17

标签: parsing puppet agent master

(我是傀儡的新手 - 希望这是一个简单的解决方法)。

我已经设置了一个木偶主服务器,以及两个木偶代理服务器。证书已签署,一切顺利,直到我尝试启动两个木偶代理。

这是我在两个代理服务器上运行的命令:

ubuntu@img1:~$ sudo puppet agent --server=puppet.omitted.com --no-daemonize --verbose

这是我在两个代理服务器上获得的输出:

Notice: Starting Puppet client version 3.4.3
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img1.omitted.com
Notice: Using cached catalog
Error: Could not retrieve catalog; skipping run

这是我的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
server=puppet.omitted.com

[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

这是主服务器上的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
certname=puppet.omitted.com
dns_alt_names=puppet.omitted.com
manifest=/etc/puppet/manifests/

[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

有趣的是,我在主服务器的syslog中看到了这一点:

Oct  7 21:51:57 ip-10-10-1-207 puppet-master[17629]: message repeated 32 times: [ Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img1.omitted.com]
Oct  7 21:53:57 ip-10-10-1-207 puppet-master[17629]: Could not parse for environment production: Is a directory - /etc/puppet/manifests on node img2.omitted.com

1 个答案:

答案 0 :(得分:0)

事实证明,将主服务器上puppet.conf中的manifest参数设置为默认值会导致一些混淆。

我删除冗余参数后立即清除错误。