- 论坛徽章:
- 0
|
朋友们好,最近在学习puppet,搭建了一个环境,遇到了个问题,纠结了很久
网络环境
192.168.199.3 puppetserver
192.168.199.5 client1
192.168.199.2 client2
系统环境
server=centos5_8x64
client=centos5_8x86
其中每台机器的hosts文件内均是相同的
[root@server /]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.199.3 puppetserver
192.168.199.5 client1
192.168.199.2 client2
软件包:
[root@server /]# rpm -qa | grep ruby
ruby-libs-1.8.5-24.el5
ruby-1.8.5-24.el5
ruby-libs-1.8.5-24.el5
ruby-shadow-1.4.1-7.el5
puppet-2.7.17.tar.gz
facter-1.6.10.tar.gz
在安装与部署的过程中没有明显报错,所有的客户端也装了ruby、facter、puppet 版本均相同
puppetmaster也 启动了,8140端口也监听了。
用ping和telnet 这几台机器的名字和端口也均可以。
目前遇到了两个问题
1.在两台客户端上测试 puppetd --test --server puppetserver (#客户端client2/client1上运行)
err: Could not retrieve catalog from remote server: certificate verify failed. This is often because the time is out of sync on the server or client
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: certificate verify failed. This is often because the time is out of sync on the server or client
google了一些资料,都说是服务器时间问题引起了。也在三台机器上对时了。可以保证时间都是一样的,秒数也没有差别。还是报这个错。
2. 在client上8140端口和8139端口都会起来,看资料客户端只用起来8139端口
我客户端的配置是这样配置的
Puppet client 设置
cd /software/puppet-2.7.17/conf
cp auth.conf namespaceauth.conf /etc/puppet/
cd redhat
cp puppet.conf /etc/puppet/
cp client.init /etc/init.d/puppet
chmod 755 /etc/init.d/puppet
chkconfig --add puppet
chkconfig puppet on
puppetmasterd –mkusers
vi /etc/puppet/puppet.conf
[agent]
Listen = true
Server = puppetserver
请朋友们帮忙看看,纠结了很久。 |
|