-1

我已经从 requiretty 为 puppet 的 sudoers 导入了这个模块requiretty

我已经对验证功能进行了测试,并且在进行 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)
4

1 回答 1

0

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

于 2013-04-30T12:16:50.490 回答