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