我在AWS中使用puppet
,当Puppet运行时,出现以下错误:
Puppet:Server hostname 'puppetmaster' did not match server certificate; expected one of puppetmaster.us-east-2.compute.internal, DNS:puppet,
请查看以下配置:
#master /etc/hosts
ubuntu@puppetmaster:~$ cat /etc/hosts
127.0.0.1 localhost
172.31.16.177 puppetmaster puppet
172.31.19.211 ip-172-31-19-211 #client
#client
ubuntu@ip-172-31-19-211:~$ cat /etc/hosts
127.0.0.1 localhost
172.31.16.177 puppetmaster puppet
172.31.19.211 ip-172-31-19-211
ubuntu@ip-172-31-19-211:~$ cat /etc/puppetlabs/puppet/puppet.conf
# This file can be used to override the default puppet settings.
# See the following links for more details on what settings are available:
# - https://puppet.com/docs/puppet/latest/config_important_settings.html
# - https://puppet.com/docs/puppet/latest/config_about_settings.html
# - https://puppet.com/docs/puppet/latest/config_file_main.html
# - https://puppet.com/docs/puppet/latest/configuration.html
[main]
certname = ip-172-31-19-211
server = puppetmaster
上述是主控机和节点机的主机文件,并且我也已经在节点机上配置了puppet.conf文件,但是客户端机器仍未连接到主控机。请有人帮忙解决这个问题。
server = puppetmaster.us-east-2.compute.internal
。它的意思是你配置了连接到puppetmaster
(我建议你使用完全限定域名),但似乎没有解析为puppetmaster.us-east-2.compute.internal
。 - azbarceapuppet_master_dnsaltnames
)。它在pe.conf
中使用(更多信息请参见官方文档)。 - azbarcea