在代理节点上:
root@agent2-VirtualBox:/var/lib/puppet# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'agent2-virtualbox.servicemesh.com, agent2-virtualbox.servicemesh, agent2-virtualbox, agent2-VirtualBox.servicemesh.com, agent2-VirtualBox.servicemesh, agent2-VirtualBox' on node agent2-virtualbox.servicemesh.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
root@agent2-VirtualBox:/var/lib/puppet#
在木偶大师方面:
root@puppetmaster:~# puppet cert sign --all
Error: No waiting certificate requests to sign
root@puppetmaster:~#
如何解决这个问题?
答案 0 :(得分:0)
您需要检查site.pp并确保定义了默认节点定义或代理的FQDN节点定义。
https://docs.puppet.com/puppet/latest/reference/lang_node_definitions.html
例如:
node 'agent2-virtualbox.servicemesh.com' {
import ntp
}