puppet客户端认证错误

Q:[root@server98 ~]# puppetd  --server=server97.example.com
  dnsdomainname: Unknown host
  dnsdomainname: Unknown host
  err: Could not request certificate: Connection refused - connect(2)
  Exiting; failed to retrieve certificate and waitforcert is disabled
A:此错误是没有启动puppetmasterd服务和配置绑定主机名
  [root@server98 ~]#vi /etc/hosts
   在最后一行添加:
   192.168.0.197 server97.example.com puppet
  [root@server97 ~]#puppetmasterd   --启动服务

Q: [root@server98 ~]# puppetd --server puppet.com --test
err: Could not request certificate: No route to host - connect(2)
Exiting; failed to retrieve certificate and waitforcert is disabled
A: server端没有开启8140 port or close iptables firewall

Q: [root@server98 ~]# puppetd --test --server=server97.example.com
  info: Creating a new SSL key for db-211
  err: Could not request certificate: getaddrinfo: Name or service not known
  Exiting; failed to retrieve certificate and waitforcert is disabled
A: 客户端没有配置服务器端的域名绑定:
  [root@server98]#vi /etc/hosts
  在最后一行添加:
  192.168.0.197 server97.example.com puppet

Q:[root@localhost puppet]# puppetd --server=server.puppet.com
Could not prepare for execution: Could not create PID file: /var/run/puppet/agent.pid
A:查看puppet的进程
ps -ef |grep puppet

kill 掉对应的进程,重新启动

你可能感兴趣的:(puppet客户端认证错误)