尝试将Puppet配置为高可用时出错
我想在高可用性环境中配置puppet。我已配置了2个Puppet Master,但它们无法通过CA相互签名。当我尝试测试尝试将Puppet配置为高可用时出错,puppet,high-availability,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
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/puppet-kitchen-example/modules
的[main]
部分中缺少值。server
值应指向Puppet主服务器。Puppet主服务器的名称必须可以从Puppet代理访问。检查以下文章,了解如何将Puppet agent正确连接到Puppet master:
似乎是一个名称解析问题?两个系统(主系统和代理系统)是否能够使用其FQDN进行通信?如果您不想使用DNS服务器,可以在/etc/hosts文件中添加他们的FQDN 例如:/etc/主机
root@puppet-master-kasun:~# cat /etc/hosts
127.0.0.1 localhost
192.168.1.1 puppet puppet-master
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
使用puppet代理-t--DEBUG进行调试
调试:启动的连接 错误:/File[/opt/puppetlabs/puppet/cache/facts.d]:无法使用“eval_generate”生成其他资源:getaddrinfo:名称或服务未知
无法访问能否显示puppet主计算机的puppet.conf文件。
getaddrinfo:名称或服务未知
表示无法访问puppet.conf中的puppet主计算机,能否编辑以显示配置?@kkamilpl,@PeterSouter我的主计算机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\u-config=/etc/puppet/hiera.yml-catalog\u-format=yaml-certname=puppet-pluginsync=false-dns\u-alt\u-names=puppet-template-master01,puppetssl\u client\u header=ssl\u client\u S\u DN ssl\u client\u verify\u header=ssl\u client\u verify manifest=$confdir/manifests/site.pp modulepath=$confdir/environments/$environment/modules:/home/clogeny/Desktop/pupet kitchen示例/模块
是否有人想到在HA(即高可用性)环境中配置多个puppetmaster?我有两个puppet master已启动并正在运行,但在HA中配置时遇到问题。@sencha7检查以下引用我在puppet master上歌唱客户端/节点后出现以下错误,并尝试运行puppet agent--test
。你能帮我一下吗?如果我重新运行puppet代理
,就会出现上面的错误(发布在本期的顶部)。我可以从我的节点ping我的木偶主人。