简体   繁体   English

Artifactory无法找到带有图书管理员木偶的模块

[英]Artifactory Unable to find module with librarian-puppet

I'm trying to use the librarian-puppet to fetch forge modules from an Artifactory repository. 我正在尝试使用图书管理员木偶从Artifactory存储库中获取伪造模块。

In my Puppetfile I have something like: 在我的Puppetfile中,我有类似以下内容:

forge "https://<artifactory_host>/artifactory/api/puppet/<repo_key>" #From artifactory docs

# PuppetLabs Modules
mod 'puppetlabs/stdlib',           '4.24.0'

The command that I'm using is /usr/local/bin/pdk bundle -- exec librarian-puppet install --no-use-v1-api --verbose 我正在使用的命令是/usr/local/bin/pdk bundle -- exec librarian-puppet install --no-use-v1-api --verbose

The error that I get is: 我得到的错误是:

[Librarian] Resolving puppetlabs-stdlib (= 4.24.0) <https://<artifactory_host>/artifactory/api/puppet/<repo_key>>
[Librarian]   Checking manifests Unable to find module 'puppetlabs-stdlib' on https://<artifactory_host>/artifactory/api/puppet/<repo_key>
/tmp/tmp.BXyhBoNRiR/.pdk/cache/ruby/2.1.0/gems/librarian-puppet-3.0.0/lib/librarian/puppet/source/forge/repo_v3.rb:44:in `rescue in get_module'
/tmp/tmp.BXyhBoNRiR/.pdk/cache/ruby/2.1.0/gems/librarian-puppet-3.0.0/lib/librarian/puppet/source/forge/repo_v3.rb:41:in `get_module'

Versions: 版本:

  • puppet 3.8.7 木偶3.8.7
  • pdk 1.5.0 pdk 1.5.0
  • ruby 2.1.9 红宝石2.1.9

According to the documentation at https://www.jfrog.com/confluence/display/RTF/Puppet+Repositories#PuppetRepositories-Usinglibrarian-puppet , it seems I'm trying to get the modules correctly using the librarian-puppet, but something most be missing. 根据https://www.jfrog.com/confluence/display/RTF/Puppet+Repositories#PuppetRepositories-Usinglibrarian-puppet上的文档,看来我正在尝试使用librarian-puppet正确获取模块,但有些东西大多数人不见了。

Thanks for any help. 谢谢你的帮助。

I think Artifacotry does not support Puppet 3.8.7 its documented in Wiki. 我认为Artifacotry不支持Wiki中记录的Puppet 3.8.7。

Puppet version support 人偶版本支持

Puppet does not support a context path up to version 4.9.1, we recommend using Artifactory with Puppet version 4.9.2 and above. Puppet不支持4.9.1之前的上下文路径,建议将Artifactory与Puppet 4.9.2及更高版本一起使用。 Please see below if you are using Puppet 4.9.1 and below. 如果您使用的是Puppet 4.9.1及更低版本,请参见下文。

The official Artifactory documentation (not a wiki) recommends using Puppet 4.9.2 or later with Artifactory: Artifactory的官方文档 (而非Wiki)建议对Artifactory使用Puppet 4.9.2或更高版本:

Puppet version support 人偶版本支持

Puppet does not support a context path up to version 4.9.1, we recommend using Artifactory with Puppet version 4.9.2 and above. Puppet不支持4.9.1之前的上下文路径,建议将Artifactory与Puppet 4.9.2及更高版本一起使用。 Please see below if you are using Puppet 4.9.1 and below. 如果您使用的是Puppet 4.9.1及更低版本,请参见下文。

(Emphasis in the original.) (强调原件。)

As that comment indicates, however, the docs do also suggest a workaround for use with earlier Puppet : 但是,正如该评论所指出的那样,文档也确实建议了与早期Puppet一起使用的解决方法

If you need to use Puppet 4.9.1 and below you can use a workaround which uses NGINX or Apache to rewrite all requests from /v3/* to /artifactory/api/puppet/<repo-name>/v3/* . 如果您需要使用Puppet 4.9.1及更低版本,则可以使用一种变通方法,该变通方法使用NGINX或Apache将所有请求从/v3/*重写到/artifactory/api/puppet/<repo-name>/v3/*

The docs go on to present some example configurations, which I will not repeat here. 文档继续介绍一些示例配置,在此不再赘述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM