在Chef SuperMarket上载cookbook

时间:2015-06-05 18:21:24

标签: chef knife

我正在尝试将菜谱上传到Chef Super market,我在创建登录后从chef.io获取了密钥对。这是我的knife.rb:

current_dir = File.dirname(__FILE__)
log_level                :info
log_location             STDOUT
node_name                "readonlychef"
client_key               "#{current_dir}/ishucap1.pem"
validation_client_name   "ishucap1"
validation_key           "#{current_dir}/developer-validator.pem"
chef_server_url          "https://supermarket.chef.io"
cache_type               'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path            ["#{current_dir}/chef/cookbooks/"]

当我运行share命令时,我收到以下错误:

985aeb8b6b92:~ zng937$  knife cookbook site share myfirstcookbook "Other" -o ./chef/cookbooks/ 
Generating metadata for myfirstcookbook from /var/folders/6s/vb0m1sqd1hldg7thk6m3dflmv7dc2h/T/chef-myfirstcookbook-build20150605-6029-ml3e6e/myfirstcookbook/metadata.rb
Making tarball myfirstcookbook.tgz
The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
ERROR: Error uploading cookbook myfirstcookbook to the Opscode Cookbook Site: 407 "Proxy Authentication Required". Increase log verbosity (-VV) for more information.

1 个答案:

答案 0 :(得分:0)

我认为你混淆了uses ... {$IFDEF MSWINDOWS} , Winapi.Windows {$ELSE} , Posix.Unistd {$ENDIF} ; ... {$IFDEF MSWINDOWS} FlushFileBuffers(MyFileStream.Handle); {$ELSE} fsync(Integer(MyFileStream.Handle)); {$ENDIF} chef_server_url

Chef Server存储并提供基础架构的所有内部资源,supermarket.chef.io是社区烹饪书的公共存储库。