我已经从requiretty为木偶的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但是,当我运行“傀儡代理-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)发布于 2013-04-30 20:16:50
修正:在模块定义中有一个notify条目,移除后工作很酷
https://stackoverflow.com/questions/16297561
复制相似问题