- 论坛徽章:
- 0
|
朋友们好,最近在学习puppet,搭建了一个环境,遇到了个问题。
网络环境
192.168.199.3 server
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 server
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端口也监听了。
在两台客户端上测试 puppetd --test -server server (#客户端client2/client1上运行)
均报错如下,感觉像是ruby出错了。
[root@client1 ~]# puppetd --test -server server
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:54:in `handle_serve': uninitialized constant Puppet::Network::Handler (NameError)
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:363:in `send'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:363:in `parse_options'
from /usr/lib/ruby/1.8/optparse.rb:1247:in `call'
from /usr/lib/ruby/1.8/optparse.rb:1247:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1205:in `catch'
from /usr/lib/ruby/1.8/optparse.rb:1205:in `order!'
from /usr/lib/ruby/1.8/optparse.rb:1279:in `permute!'
from /usr/lib/ruby/1.8/optparse.rb:1300:in `parse!'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:370:in `parse_options'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:416:in `hook'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:407:in `exit_on_fail'
from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:305:in `run'
from /usr/sbin/puppetd:4
请问这个问题,要如何解决呢?谢谢 |
|