私人超市的食谱站点共享命令正在连接到公共超市

时间:2016-01-06 20:33:07

标签: chef chef-recipe

当我在私人超市安装上运行上传cookbook的命令时,它总是尝试连接到“supermarket.chef.io”,即使我已将knife[:supermarket_site] = 'https://ip-205-5-117.dqa.capitalone.com/'添加到我的knife.rb

我正在尝试运行的命令:

knife cookbook site share myfirstcookbook "others" -c knife.rb -VV

记录是:

workstation:test zng937$ knife cookbook site share  myfirstcookbook "Web Servers" -c knife.rb 
Generating metadata for myfirstcookbook from /var/folders/6s/vb0m1sqd1hldg7thk6m3dflmv7dc2h/T/chef-myfirstcookbook-build20160106-7998-r5y7kx/myfirstcookbook/metadata.rb
Making tarball myfirstcookbook.tgz
ERROR: Error uploading cookbook myfirstcookbook to the Opscode Cookbook Site: Operation timed out - connect(2) for "supermarket.chef.io" port 443. Increase log verbosity (-VV) for more information.

1 个答案:

答案 0 :(得分:1)

您希望使用knife-supermarket插件:https://github.com/chef/knife-supermarket