我想在高可用性環境中配置puppet。我配置了2個木偶大師,但他們無法通過CA簽署對方。當我嘗試測試puppet agent --test
,它給了我以下錯誤:嘗試將Puppet配置爲高可用性時出錯
'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
你能證明你的木偶大師機puppet.conf文件。 – kkamilpl 2015-02-24 14:13:39
'getaddrinfo:名稱或服務未知'意味着您在puppet.conf中擁有的木偶大師無法訪問,您可以編輯以顯示您的配置嗎? – 2015-02-24 15:50:58
@ 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_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清單= $ confdir/manifests/site.pp modulepath = $ confdir/environments/$ environment/modules:/ home/clogeny/Desktop/pupp et-kitchen-example/modules' – sencha7 2015-02-25 05:51:52