我使用此命令在主机中安装了Maven模块:
puppet module install maestrodev-maven --version 1.4.0
它在/ etc / puppet / modules /
中成功安装之后我在主机的/etc/puppet/manifests/site.pp文件中添加了以下代码
node 'test02.edureka.com'
{
include maven
}
现在,当我在Puppet Agent机器上运行命令
时puppet agent -t
它给出错误:
root@test02:~# puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: execution expired
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': execution expired
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://test01.edureka.com/pluginfacts: execution expired
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': execution expired
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://test01.edureka.com/plugins: execution expired
Info: Loading facts
Error: JAVA_HOME is not defined correctly.
We cannot execute
Could not retrieve fact='maven_version', resolution='': undefined method `split' for nil:NilClass
Error: Could not retrieve catalog from remote server: execution expired
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: execution expired
root@test02:~#
master上的puppet.conf文件:
代理上的puppet.conf文件:
错误截图: