错误:连接拒绝连接到locahost-Berkshelf-测试厨房

时间:2019-06-18 07:58:38

标签: chef test-kitchen inspec kitchen-dokken

kitchen convergeDokken driver作为验证者的Test Kitchen上运行Inspec时遇到问题。

开始解决食谱依赖项7.0.6时发生错误

Resolving cookbook dependencies with Berkshelf 7.0.6... [2019-06-18T15:17:56+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/apache2/3.1.0, retry 1/5 [2019-06-18T15:17:56+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/alternatives/0.1.1, retry 1/5 [2019-06-18T15:18:01+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/apache2/3.1.0, retry 2/5 [2019-06-18T15:18:01+08:00] ERROR: Connection refused connecting to https://localhost/cookbooks/alternatives/0.1.1, retry 2/5

有什么主意吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

我通过在~/.chef/knife.rbchef_server_url 'https://chef-server-url'

内添加新参数解决了该问题