鐒跺悗錛屼細(xì)鍑虹幇榪欐牱鐨勪俊鎭?/span>
Info: Creating a new SSL key for agent01.noah-test
Info: Caching certificate for ca
Info: csr_attributes file loading from /etc/puppetlabs/puppet/csr_attributes.yaml
Exiting; no certificate found and waitforcert is disabled
璇佹槑錛岀敵璇鋒垚鍔燂紝絳夊緟server绔悓鎰忋傝繖鏃跺彲浠ヨ漿鍒皊erver绔紝鎵ц濡備笅鍛戒護(hù)鏌ョ湅濡備簺鏈哄櫒瑕佺敵璇瘋瘉涔?
sudo /opt/puppetlabs/bin/puppet cert list --all 榪欓噷浼?xì)鏄窘C哄嚭鎵鏈夌敵璇瘋繃鐨勫拰姝e湪絳夊緟瀹℃壒鐨刟gent鐨刢ertname 鐨勫悕瀛椼傚鎵歸氳繃鐨勫墠闈㈡湁涓?#8220;+”銆?br />鎺ヤ笅鏉ユ墽琛屽涓嬪懡浠よ繘琛屽崟鐙鎵?br />
sudo /opt/puppetlabs/bin/puppet cert sign agent001.noah-test.net

涔熷彲浠ョ洿鎺ュ湪sgin 鍚庨潰鍔?"--all",榪涜鍏ㄩ儴瀹℃壒銆?br />
瀹℃壒瀹屾垚鍚庯紝鍐嶅洖鍒癮gent绔紝鎵ц鍚屾牱鐨勫懡浠?br />
sudo /opt/puppetlabs/bin/puppet agent --test
濡備笅鏄劇ず鐨勫叏鏄被浼煎涓嬬豢鑹茬殑淇℃伅錛岃瘉鏄庡畠浠箣闂寸殑閫氫俊宸茬粡寤虹珛鎴愬姛
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for agent001.noah-test.net
Info: Applying configuration version '1481877703'
闂姹囨伙細(xì)
cloud@cdt-dev-cafews-yabinx:/etc/puppetlabs/puppet> sudo puppet agent -t
Warning: Setting 'pluginsync' is deprecated.
(at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/defaults.rb:1713:in `block in <module: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[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: getaddrinfo: Name or service not known
Info: Loading facts
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
鐢ㄧ殑鍛戒護(hù)涓嶅錛屾敼鐢ㄨ繖涓?/span>
sudo /opt/puppetlabs/bin/puppet agent --test
sudo/opt/puppetlabs/bin/puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Info: Retrieving pluginfacts
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Info: Retrieving plugin
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Error: Could not retrieve catalog from remote server: Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Server hostname 'cdt-dev-cafews-yabinx' did not match server certificate; expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
鍏跺疄瀹冨凡緇忓憡璇変綘浜嗭紝鏀逛竴涓?etc/hosts灝卞彲浠ヤ簡錛屾敼鎴愪笅闈㈢殑鍏朵腑涓涓?/span>
expected one of cdt-dev-cafews-yabinx.emea1.cis.trcloud, DNS:puppet, DNS:cdt-dev-cafews-yabinx.emea1.cis.trcloud
sudo /opt/puppetlabs/bin/puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Info: Retrieving pluginfacts
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Error: /File[/opt/puppetlabs/puppet/cache/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet:///pluginfacts: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Info: Retrieving plugin
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Error: /File[/opt/puppetlabs/puppet/cache/lib]: Could not evaluate: Could not retrieve file metadata for puppet:///plugins: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cdt-dev-cafews-yabinx2.emea1.cis.trcloud]
涓鑸繖縐嶆儏鍐靛氨鏄敱浜庢煇縐嶅師鍥犳病鏈夎璇佹病鏈夋垚鍔燂紝浣嗗畠鍙堜笉浼?xì)閲嶆柊璁よ瘉浜嗗Q屾墍浠ュ氨鎶ヨ繖涓敊璇紝瑙e喅鍔炴硶鏄埌榪欎釜鐩綍涓?etc/puppetlabs/puppet錛屾妸鐢熸垚鐨剆sl鏂囦歡澶圭粰鍒犻櫎錛岃瀹冮噸鏂扮敓鎴愪竴嬈ey銆傚鏋滅敓鎴愪竴嬈¤繕娌℃湁鎴愬姛鐨勮瘽錛屼綘瑕佺湅涓涓嬫槸涓嶆槸鍏跺畠鍦版柟鐨勯棶棰橈紝鐒跺悗錛岃閲嶆柊閲嶅涓婇潰鐨勬楠わ紝閲嶆柊鐢熸垚瀵嗛挜銆?/span>

]]>