RedHat 6.5 Puppet配置(五)[troubleshooting]

1.客户端Agent没有权限解析/etc/puppet/manifests/site.pp

# 现象
[root@glusterfs01 ~]# puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Permission denied - /etc/puppet/manifests/site.pp on node glusterfs01.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

#解决方案 /etc/puppet/manifests/site.pp的权限为755
chmod 755 /etc/puppet/manifests/site.pp

2.Agent端不能发现定义在modules下的模块,原因模块目录的权限问题。

# 现象
Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class '[module_name]' for '[agent_host]' on node '[agent_host]'
puppet-agent[30143]: Not using cache on failed catalog
puppet-agent[30143]: Could not retrieve catalog; skipping run

# 解决方案。修改模块的权限为755
cd /etc/puppet/modules
chmod -R ./{module}

3.Agent不能提取自定义模块下files目录下的配置文件

# 原模块配置文件资源source属性配置
source => "puppet:///test/test.txt"
[test] 为自定义模块名称
[test.txt]为自定义模块'test'下files路径下的文件

# 现象
Error: /Stage[main]/Test/File[/tmp/test.txt]: Could not evaluate: Could not retrieve file metadata for puppet:///test/test.txt: Error 400 on SERVER: Not authorized to call find on /file_metadata/test/test.txt with {:links=>"manage", :source_permissions=>"use"}

#原因 文件资源属性source => 值配置有误,路径不对

#解决方案:修改文件资源的source属性
source => "puppet:///modules/test/test.txt"

参考文档:http://docs.puppetlabs.com/guides/file_serving.html#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值