Puppet 6.1.0:已安装文件中缺少node.rb?

问题描述 投票:1回答:2

为了测试,我在VirtualBox上安装了两个Ubuntu服务器18.04的实例。然后,根据Puppetlabs for 6.1的文档,我在Puppet-server 6.1.0和Puppet-agent 6.1.0上安装了一个。 Foreman没有安装。

在puppetserver上注册我的代理并签署证书后,启动puppet-run(sudo / opt / puppetlabs / bin / puppet agent --test)失败,并出现以下错误:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node puppetagent.fritz.box: Exception while executing '/etc/puppetlabs/puppet/node.rb': Cannot run program "/etc/puppetlabs/puppet/node.rb" (in directory "."): error=2, No such file or directory

我很沮丧地发现脚本/etc/puppetlabs/puppet/node.rb确实缺失了,并且也没有包含在puppetserver,puppet-agent或facter的包中(sudo dpkg-query -L ...)。

谷歌搜索它,我只找到了一个属于Foreman的同名脚本。

该文件似乎也没有出现在github的puppetserver源代码中。

有人能够对此有所了解吗?

linux puppet ubuntu-18.04
2个回答
1
投票

您的服务器配置似乎已设置为指定使用外部节点分类器。这是可选的:Puppet不需要ENC,默认情况下不提供ENC。这是他们“外部”的一部分。如果您获得了直接开箱即用的结果,那么它可能反映了您应该报告的包装缺陷。

在此期间,您应该能够通过将the configuration设置的值更改为node_terminus来更新plain以禁用ENC的使用。或者,您应该能够从配置中删除node_terminusexternal_nodes,因为前者的默认值是plain


0
投票

标记为John的答案,您的配置可能配置为与Foreman交谈。如果您没有自己编写或从某处复制它并且您确定没有安装任何Foreman软件包,那么它绝对是您应该报告的打包错误。

也就是说,puppet repos几乎总是正确的答案,而不是发行包。

© www.soinside.com 2019 - 2024. All rights reserved.