我在一台Ubuntu机器上,当我没有安装jenkins傀儡与以下错误:
/etc/puppet/modules/jenkins/manifests# puppet agent --no-daemonize --verbose notice: Starting Puppet client version 2.7.1 info: Caching catalog for fqdn.myhost.com err: Could not run Puppet configuration client: Parameter unless failed: 'apt-key list | grep -Fqe 'D50582E6'' is not qualified and no path was specified. Please qualify the command or specify a path.
而事实上我没有这个:
/etc/puppet/modules/jenkins/manifests# apt-key list | grep -Fqe 'D50582E6' /etc/puppet/modules/jenkins/manifests#
我已经按照这个页面中的解释,并使用指定的第一个模块:
https://wiki.jenkins-ci.org/display/JENKINS/Puppet
我已经从https://github.com/camptocamp/puppet-apt/downloads下载了apt模块
并放置在模块下的木偶。
任何人都可以帮助我如何克服这一点? 谢谢
它不告诉你这个错误发生在哪里? 即你的Puppet的哪一行体现? 你在某个地方有一个执行官,那有“除非”? 你得到的错误信息似乎很清楚。 要么你应该完全限定可执行文件,即
unless => '/usr/bin/apt-key list | /bin/grep -Fqe D50582E6',
或者你应该添加一个path,即
path => ['/bin', '/usr/bin'], unless => 'apt-key list | grep -Fqe D50582E6',