puppet 3.6 两例错误处理

本文解决使用Puppet进行系统管理时遇到的安装Puppet 3.6时的警告信息问题,并讨论了如何配置文件服务权限以避免400错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

puppet 3.6 安装包的时候警告信息:

 

Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in `default')


配置site.pp,添加:

Package {
  allow_virtual => true,
}

错误2:

Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/pluginfacts with {:recurse=>true, :checksum_type=>"md5", :ignore=>[".svn", "CVS", ".git"], :links=>"manage"}
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet.dadi.com/pluginfacts: Error 400 on SERVER: Not authorized to call find on /file_metadata/pluginfacts with {:source_permissions=>"use", :links=>"manage"}
Wrapped exception:
Error 400 on SERVER: Not authorized to call find on /file_metadata/pluginfacts with {:source_permissions=>"use", :links=>"manage"}

处理:

vi fileserver.conf 
[plugins]
  allow *


转载于:https://my.oschina.net/u/142602/blog/300841

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值