puppet - 尝试将 Puppet 配置为高可用时出错

标签 puppet high-availability

我想在高可用性环境中配置 puppet。我已经配置了 2 个 Puppet Master,但它们无法通过 CA 相互签名。当我尝试测试 puppet agent --test 时,它给出以下错误:

'Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/home/clogeny/.puppet/var/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/home/clogeny/.puppet/var/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/home/clogeny/.puppet/var/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/home/clogeny/.puppet/var/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: getaddrinfo: Name or service not known'

有人可以帮我吗?

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 
hiera_config=/etc/puppet/hiera.yml 
catalog_format = yaml 
certname=puppet 
pluginsync=false 
dns_alt_names=puppetmaster01,puppet.sencha.com 

[master] 
ssl_client_header = SSL_CLIENT_S_DN 
ssl_client_verify_header = SSL_CLIENT_VERIFY 
manifest=$confdir/manifests/site.pp 
modulepath=$confdir/environments/$environment/modules:/home/clogeny/Desktop/pupp‌​‌​et-kitchen-example/modules

最佳答案

缺少server puppet.conf[main] 部分中的值。 server 值应指向 Puppet 主服务器。 Puppet 主服务器的名称必须可从 Puppet 代理访问。检查以下文章如何正确连接 Puppet Agent 到 Puppet Master:

http://shapeshed.com/connecting-clients-to-a-puppet-master/

https://docs.puppetlabs.com/guides/install_puppet/post_install.html

关于puppet - 尝试将 Puppet 配置为高可用时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28695107/

相关文章:

provisioning - 如何使用 puppetlabs/apt 模块?

python - 当 Python 脚本运行并以 sys.exit(0) 结束时出现错误 : exited with status 2

java - 实现 Java Web 应用程序的高可用性

c# - 使用 C# asp.net/Net 4.7 为 HA 缓存大对象

algorithm - 你能使用权重来避免群体中的脑裂吗?

puppet - 在 puppet 中,如何停止服务,执行某些操作然后启动服务?

puppet - 为什么要使用 "resource collectors"?

rspec - 为什么我会得到 puppet-rspec 'class does not exist' ?

laravel - Vagrant Puppet 配置 - Pear 包

Rabbitmq WAN 上的主动/被动 HA