简体   繁体   English

我如何从 puppet repo 中获取可用的 puppet 模块的完整列表

[英]How could i get the complete list of puppet modules availabe from puppet repo

I'm looking for a way to get the list of complete puppet modules from the puppet repo我正在寻找一种从 puppet repo 中获取完整 puppet 模块列表的方法

As far as I am aware, there is no direct way to get such a list.据我所知,没有直接的方法可以获得这样的列表。 I would consider inquiring directly of Puppet, Inc. , as it's not out of the question that they would be willing to run a one-off special query for you.我会考虑直接向 Puppet, Inc. 查询,因为他们愿意为您进行一次性的特殊查询并非不可能。 I'm sure they would want to know what you want to do with the list, though.不过,我相信他们会想知道您想对列表做什么。 And, of course, this is by no means a sure thing.当然,这绝不是确定的事情。

You could also use a bot to screen-scrape the multiple HTML pages of the all-module list , and process the results to extract the list you want.您还可以使用机器人屏幕抓取所有模块列表的多个 HTML 页面,并处理结果以提取您想要的列表。 But that would be a lot more work than just asking.但这将比仅仅询问更多的工作。

Note well that the Forge contents are not static.请注意,Forge 内容不是 static。 New modules are added regularly, and module versions are updated from time to time.定期添加新模块,不时更新模块版本。 I'm uncertain about the policy for removals, but it seems that they generally do not remove modules, but rather deprecate them.我不确定删除的政策,但似乎他们通常不会删除模块,而是弃用它们。 In any case, any list of the Forge contents would necessarily be a snapshot from a single point in time.在任何情况下,任何 Forge 内容列表都必然是来自单个时间点的快照。

You should also understand that although the Forge itself is operated by Puppet, most of the modules are contributed and maintained by community members, if they are maintained at all.您还应该了解,虽然 Forge 本身是由 Puppet 运营的,但如果有维护的话,大部分模块都是由社区成员贡献和维护的。 There is also an unknown but probably large number of modules in use in the world that are not available from the Forge.世界上还有一些未知但可能大量使用的模块无法从 Forge 获得。 Thus, the list you are asking for cannot be construed as a list of official modules, nor as a list of all the modules there are.因此,您要求的列表不能被解释为官方模块的列表,也不能被解释为所有模块的列表。

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

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