如何 bootstrap 机器使用 chef-client 的本地存储库

how to bootstrap machines using a local repository for chef-client

我需要将 chef-client 作为 rpm 存储在本地存储库 (nexus) 上,并在我 bootstrap 一个新节点时使用它,因此新机器不会从 chef.io 下载它, 但来自本地服务器。

这可能吗?我该怎么做?

谢谢, 加布里埃尔

您可以使用以下几个选项之一:

  1. 使用 --bootstrap-url 为本地托管的安装程序脚本提供 URL,其工作方式与普通 Omnitruck 脚本类似。

  2. 使用--bootstrap-command给命令运行代替curl-bash.

  3. 使用自定义 bootstrap 模板。随便换。