Puppet 安装tomcat6模块时出错

Puppet 安装tomcat6模块时出错,puppet,Puppet,我正在尝试将tomcat6模块安装到代理中。我已经从puppetlab下载了模块。并尝试连接到服务器。我收到以下错误 Error: Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param 'undef' at /etc/puppet/modules/yum_priorities/manifests/init.pp:19.. init.pp文

我正在尝试将tomcat6模块安装到代理中。我已经从puppetlab下载了模块。并尝试连接到服务器。我收到以下错误

Error: Could not retrieve catalog from remote server: Error 400 on
 SERVER: No matching value for selector param 'undef' at
/etc/puppet/modules/yum_priorities/manifests/init.pp:19..
init.pp文件包含用于yum\u优先级的

清单中的my site.pp文件


tomcat依赖于yum\u priorities

在类yum\u priorities内的第20行打印一条notify语句。比如:

notify {"I AM SEEING THIS ... ${yum_priorities}" :}
还有tomcat6模块内部的某个地方

并检查运行puppet agent时得到的结果。如果为空,则表示未正确传播


另一个评论是,类和变量的名称相同可能不是一个好的编码示例,即yum\u priorities。

看起来好像没有定义
$lsbmajDistricelase

尝试添加适当的作用域(全局):
$::lsbmajDistriplease

Facter应该为您提供全局变量,您可以手动运行Facter并查看是否有错误

facter lsbmajdistrelease

我不能添加评论,所以我必须“回答”:。无论如何,正如Ger-Apeldoorn Factor所回答的那样,我们无法获得
lsbmajDistricelase
的值

在Redhat/CentOS上查找丢失的软件包:

yum whatprovides lsb_release
或者简单地安装它:

yum install redhat-lsb-core

这会解决问题。

惯例是也为选择器定义一个默认大小写,以便准确处理这些实例。
yum whatprovides lsb_release
yum install redhat-lsb-core