从 repo 下载 JAR 文件时出错

Error while downloading JAR file from repo

我正在尝试从存储库下载 JAR 文件,但出现以下错误:

pget { 'Download 123 jar file':
  source         => 'url'       
  target         => 'C:\download,
  targetfilename => '123.jar',
  require        => File['E:\download'],
}

我在执行资源时遇到以下错误

Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'pget'

谁能解释为什么我不能使用 pget?还有其他方法可以下载 JAR 文件吗?

您可能忘记安装提供 pget 类型的模块,或者没有正确安装:https://forge.puppet.com/cyberious/pget

在本地(使用 puppet apply)或在主机上(使用 puppet agent)安装它:

puppet module install cyberious-pget

然后您的资源就会起作用。