运行puppet agent运行时ruby代码出错

时间:2017-07-19 03:17:22

标签: puppet

当我在我的服务器上运行puppet agent -t时出现错误:

below image is the output of my puppet agent using a command puppet agent -t

来自puppet-master的日志如下所示:

logs output from my puppet master server

1 个答案:

答案 0 :(得分:0)

不幸的是,这是使用Ruby 1.8.7(一个很长的EOL版本的Ruby)引起的错误。 Puppet使用Ruby编译目录,CentOS 6的上游使用1.8.7 Ruby,它是3 years的EOL。

解决这个问题的最简单方法是使用Puppet 4,它将自己的Ruby打包为all-in-one package的一部分(以避免在支持旧版Ruby的系统上出现这样的错误)