小编Rot*_*ard的帖子

Berksfile 源无法识别自托管的 Chef 服务器

我有一个自托管的 Chef 服务器。我可以knife upload访问该服务器,并以其他方式与之交互。因此,我的knife.rb工作正常。我最近对一本食谱进行了参数化,以使其成为一系列相关食谱的基础。

问题是我希望这本食谱是私有的,所以它只存在于我的私人 Chef 服务器上。不幸的是,我不能berks install在我的其他食谱上做。我指着我Berksfile的厨师服务器:

source https://chef.myhost.com

这不起作用。我认为这是因为该 URL 用于 Chef Manage,而不是 Chef Server API。但是,我不知道如何让 Berkshelf 识别我的 Chef Server 并使用其 API。

完整的错误:

> berks install
Resolving cookbook dependencies...
Fetching 'blog_role' from source at .
Fetching cookbook index from chef.myhost.com...
Error retrieving universe from source: chef.myhost.com * [Berkshelf::APIClient::BadResponse] bad response #<Faraday::Response:0x36ae618 @on_complete_callbacks=[], @env=#<Faraday::Env @method=:get @body="<html><body>You are being <a href=\"chef.myhost.com:443/signup\">redirected</a>.</body></html>" @url=#<URI::HTTPS:0x36891f0 URL:chef.myhost.com/universe> @request=#<Faraday::RequestOptions timeout=30, open_timeout=30> @request_headers={"User-Agent"=>"Faraday v0.9.1"} @ssl=#<Faraday::SSLOptions (empty)> …
Run Code Online (Sandbox Code Playgroud)

chef berkshelf

6
推荐指数
1
解决办法
2516
查看次数

标签 统计

berkshelf ×1

chef ×1