木偶未知功能验证

时间:2013-04-30 10:22:29

标签: linux debian puppet

我已经为requiretty

的木偶导入了这个模块requiretty for sudoers

我已经对验证功能进行了测试,并且在进行irb检查时没有给出任何错误。

[root@yeovil functions]# irb
irb(main):001:0> require 'puppet'
=> true
irb(main):002:0> require  '/var/lib/puppet/parser/functions/validate.rb'
=> true
irb(main):003:0> Puppet::Parser::Functions.function(:validate)
=> "function_validate"
irb(main):004:0> "function_validate"
=> "function_validate"
irb(main):005:0> 
[2]+  Stopped    

         irb

然而,当我运行“puppet agent -t”时,它会返回

"Could not retrieve catalog from remote server: Error 400 on SERVER: Unknown function validate "

更新:

通过创建

来修复它
{modulepath}/{module}/lib/puppet/parser/functions

但现在出现此错误

SERVER: Can't synthesize edge: Sudo::Requiretty[kshk] -notifies- requiretty is being called (param notify)

1 个答案:

答案 0 :(得分:0)

修复:在模块定义中有一个通知条目,删除后工作很酷