在进行 puppet 客户端服务端部署时证书签发时出现问题
环境
主机 操作系统 IP地址 主要的软件
ligc_116 CentOS 7 192.168.10.116 puppet-server
ligc_117 CentOS 7 192.168.10.117 puppet-agent
版本是
puppetlabs-release-el-7.noarch.rpmd
时间已经同步,防火墙已关闭,hosts文件已配置,
服务端进行的操作,
在第一台server机安装
[root@ligc_116 ~]#wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
[root@ligc_116 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@ligc_116 ~]#yum install epel-release -y
[root@ligc_116 ~]# rpm -ivh puppetlabs-release-el-7.noarch.rpm
[root@ligc_116 ~]# yum -y install puppet-server
[root@ligc_116 ~]# puppet master -v --no-daemonize
启动无问题
客户端进行的操作
[root@ligc_117 ~]# rpm -ivh puppetlabs-release-el-7.noarch.rpm
[root@ligc_117 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@ligc_117 ~]# wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
[root@ligc_117 ~]# yum -y install puppet
[root@ligc_117 ~]# vim /etc/puppet/puppet.conf
server = ligc_116 #在agent区域添加
##指定puppet server主机名,需要写hosts文件内的;
[root@ligc_117 ~]# puppet agent --test

(7)服务端签发证书
[root@ligc_116 ~]# puppet cert sign ligc_117
Notice: Signed certificate request for ligc_117
Notice: Removing file Puppet::SSL::CertificateRequest ligc_117 at '/var/lib/puppet/ssl/ca/requests ligc_117.pem'
(8)客户端再次拉取生成
[root@ligc_117 ~]# puppet agent --test
Info: Caching certificate for ligc_117
Info: Caching certificate_revocation_list for ca
Info: Caching certificate for ligc_117
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: undefined method `include?' for nil:NilClass
Info: Retrieving pluginfacts
**Error: Could not retrieve pluginfacts: Parameter source failed on File[/var/lib/puppet/facts.d]: Could not understand source puppet://ligc_116/pluginfacts: the scheme puppet does not accept registry part: ligc_116 (or bad hostname?)**
Info: Retrieving plugin
**Error: Could not retrieve plugin: Parameter source failed on File[/var/lib/puppet/lib]: Could not understand source puppet://ligc_116/plugins: the scheme puppet does not accept registry part: ligc_116 (or bad hostname?)**
Info: Caching catalog for ligc_117
Info: Applying configuration version '1713150117'
Info: Creating state file /var/lib/puppet/state/state.yaml
系统日志显示
Apr 15 11:33:46 ligc_117 puppet-agent[22222]: Retrieving pluginfacts
Apr 15 11:33:46 ligc_117 puppet-agent[22222]: Could not retrieve pluginfacts: Parameter source failed on File[/var/lib/puppet/facts.d]: Could not understand source puppet://ligc_116/pluginfacts: the scheme puppet does not accept registry part: ligc_116 (or bad hostname?)
Apr 15 11:33:46 ligc_117 puppet-agent[22222]: Retrieving plugin
Apr 15 11:33:46 ligc_117 puppet-agent[22222]: Could not retrieve plugin: Parameter source failed on File[/var/lib/puppet/lib]: Could not understand source puppet://ligc_116/plugins: the scheme puppet does not accept registry part: ligc_116 (or bad hostname?)
Apr 15 11:33:47 ligc_117 puppet-agent[22222]: Caching catalog for ligc_117
Apr 15 11:33:47 ligc_117 puppet-agent[22222]: Applying configuration version '1713150117'
Apr 15 11:33:47 ligc_117 puppet-agent[22222]: Finished catalog run in 0.01 seconds
怎么解决?