本帖最后由 陈森林 于 2016-6-13 13:14 编辑
NETWORKING=yes
HOSTNAME=web9.chen.com
[root@web9 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.234.152 web10.chen.com
192.168.234.110 web9.chen.com
Exiting; no certificate found and waitforcert is disabled
NETWORKING=yes
HOSTNAME=web10.chen.com
[root@web10 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.234.152 web10.chen.com
192.168.234.110 web9.chen.com
[root@web10 ~]# puppet cert list --all
+ "web10.chen.com" (SHA256) BB:18:DC:EB:1A:02:A6:1A:6B:E3:78:8F:22:8F:E5:7B:47:9A:12:C3:3E:D2:9F:58:72:83:89:80:89:13:E5:61 (alt names: "DNS:puppet", "DNS:puppet.chen.com", "DNS:web10.chen.com"
Error: Could not find certificate request for web9.chen.com
服务端:web10.chen.com
客户端:web9.chen.com
客户端信息:
[root@web9 ~]# cat /etc/sysconfig/networkNETWORKING=yes
HOSTNAME=web9.chen.com
[root@web9 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.234.152 web10.chen.com
192.168.234.110 web9.chen.com
操作:
[root@web9 ~]# puppet agent --test --server web10.chen.comExiting; no certificate found and waitforcert is disabled
服务端信息:
[root@web10 ~]# cat /etc/sysconfig/networkNETWORKING=yes
HOSTNAME=web10.chen.com
[root@web10 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.234.152 web10.chen.com
192.168.234.110 web9.chen.com
[root@web10 ~]# puppet cert list --all
+ "web10.chen.com" (SHA256) BB:18:DC:EB:1A:02:A6:1A:6B:E3:78:8F:22:8F:E5:7B:47:9A:12:C3:3E:D2:9F:58:72:83:89:80:89:13:E5:61 (alt names: "DNS:puppet", "DNS:puppet.chen.com", "DNS:web10.chen.com"
操作:
[root@web10 ~]# puppet cert --sign web9.chen.comError: Could not find certificate request for web9.chen.com
为什么会不成功呢
编辑回复