本文介绍了如何使用 puppet 模块安装从本地存储库安装 puppet 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于这个问题的另一个问题.

another question around this problem.

有没有办法从我已经下载到磁盘的本地存储库安装 puppet 模块安装 工具?

is there a way the the puppet module install tool to install from a local repo I already downloaded to the disk?

推荐答案

很遗憾,没有.

您可以阅读 puppet 模块 face 这里的手册页.虽然在安装模块时似乎可以选择指定私有伪造,但 Puppetlabs 的 Forge API 不是公开的,而且 Puppetlabs 本身不支持除 Forge 之外的任何公共或私有应用程序来构建私有存储库.

You can read the manual page for the puppet module face here. While there seems to be an option to specify private forges when installing modules, Puppetlabs' Forge API are not public, and Puppetlabs itself doesn't support any public or private application other than their Forge to build private repositories.

作为替代方案,您可以尝试 librarian-puppet:https://github.com/rodjek/librarian-puppet.
它允许您在 Puppetfile 中指定模块依赖项,还允许指定 Git 存储库作为源(因此您也可以安装不在 Forge 中的模块).

As an alternative, you could try librarian-puppet: https://github.com/rodjek/librarian-puppet.
It allows you to specify your module dependencies in a Puppetfile, also allowing to specify a Git repository as a source (so you can install also modules that are not in the Forge).

这篇关于如何使用 puppet 模块安装从本地存储库安装 puppet 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 06:16
查看更多