2

在我的服务器上安装 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

我是木偶的新手,对红宝石一无所知。我不知道我在这里做错了什么。

你能告诉我如何解决这个问题吗?谢谢。

顺便提一句。

[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.

4

1 回答 1

0

对我来说,这发生在我通过 gem 安装了一个 puppet 版本,也通过 Ubuntu 软件包(来自 puppet labs repo)。执行“gem uninstall puppet”然后“apt-get install puppet”为我修复了它。

于 2014-05-26T13:45:46.337 回答