puppet - Puppet: 无法计算:未初始化的常量 Puppet:: 文件系统:: file

  显示原文与译文双语对照的内容
0 0

我在服务器上安装puppet并执行命令时出现错误 sudo puppet resource group puppet ensure=present

错误消息为

[solr@e3slri01 ~]$ sudo puppet resource group puppet ensure=present
Failed to load feature test for libuser: uninitialized constant Puppet::FileSystem::File
Error:/File[/etc/puppet]: Could not evaluate: uninitialized constant Puppet::FileSystem::File
Notice:/File[/etc/puppet/ssl]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl]: Skipping because of failed dependencies
Notice:/File[/etc/puppet/ssl/private_keys]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl/private_keys]: Skipping because of failed dependencies
Error:/File[/var/lib/puppet]: Could not evaluate: uninitialized constant Puppet::FileSystem::File
Notice:/File[/var/lib/puppet/run]: Dependency File[/var/lib/puppet] has failures: true
Warning:/File[/var/lib/puppet/run]: Skipping because of failed dependencies
Notice:/File[/var/lib/puppet/state]: Dependency File[/var/lib/puppet] has failures: true
Warning:/File[/var/lib/puppet/state]: Skipping because of failed dependencies
Notice:/File[/var/lib/puppet/lib]: Dependency File[/var/lib/puppet] has failures: true
Warning:/File[/var/lib/puppet/lib]: Skipping because of failed dependencies
Notice:/File[/etc/puppet/ssl/public_keys]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl/public_keys]: Skipping because of failed dependencies
Notice:/File[/etc/puppet/ssl/certs]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl/certs]: Skipping because of failed dependencies
Notice:/File[/var/lib/puppet/log]: Dependency File[/var/lib/puppet] has failures: true
Warning:/File[/var/lib/puppet/log]: Skipping because of failed dependencies
Notice:/File[/etc/puppet/ssl/private]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl/private]: Skipping because of failed dependencies
Notice:/File[/etc/puppet/ssl/certificate_requests]: Dependency File[/etc/puppet] has failures: true
Warning:/File[/etc/puppet/ssl/certificate_requests]: Skipping because of failed dependencies
Error: Could not run: Got 2 failure(s) while initializing: Could not evaluate: uninitialized constant Puppet::FileSystem::File; Could not evaluate: uninitialized constant Puppet::FileSystem::File

我是puppet的新手,对 ruby 一无所知。 我不清楚我在这里做了什么。

你能告诉我怎么修复这个问题? 谢谢。

顺便说一句。

[solr@e3slri01 ~]$ ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
[solr@e3slri01 ~]$ sudo puppet --version
3.3.2
[solr@e3slri01 ~]$ sudo facter --version
1.7.3

还有 PS 。

[solr@e3slri01 puppet]$ pwd
/etc/puppet
[solr@e3slri01 puppet]$ ll
total 8
-rw-r--r-- 1 root root 4133 Feb 25 22:56 auth.conf

似乎 /etc/puppet 中有些文件和文件夹丢失了。

时间:原作者:3个回答

0 0

对我来说,这个 happenend,我有一个通过 gem 安装的,还通过Ubuntu软件包( 从puppet实验室 repo ) 。 做"。gem 卸载 puppet"然后"apt安装 puppet"为我修复。

原作者:
...