尝试使用命令选项puppet运行 eval`ssh-agent -s 命令,这会给我这些错误:
exec { 'eval' :
command => "eval `ssh-agent -s`",
}
给我这个错误:
Error: Validation of Exec[eval] failed: 'eval `ssh-agent -s`' is not qualified and no path was specified. Please qualify the command or specify a path. at /puppet.pp:18
Wrapped exception:
'eval `ssh-agent -s`' is not qualified and no path was specified. Please qualify the command or specify a path.
最佳答案
您需要为exec设置PATH。我可以通过设置path参数在本地定义:
exec { 'eval' :
command => "eval `ssh-agent -s`",
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
}
或全局:
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] }
关于ssh - 运行eval `ssh-agent -s`会给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28525569/