在我的服务器上安装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
似乎遗漏了一些文件和文件夹。
答案 0 :(得分:0)
对于我来说,这种情况发生在我通过gem安装了一个版本的puppet,也通过Ubuntu软件包(来自puppet labs repo)。 做“宝石卸载木偶”,然后“apt-get install puppet”为我修复了它。