Chef infra 上传厨师超市食谱

Chef infra 上传厨师超市食谱,chef-infra,knife,Chef Infra,Knife,我正试图上传一本烹饪书到Chef Super market,在创建登录名后,我从Chef.io获取了密钥对。这是我的刀。rb: current_dir = File.dirname(__FILE__) log_level :info log_location STDOUT node_name "readonlychef" client_key "#{current_dir}/ishuc

我正试图上传一本烹饪书到Chef Super market,在创建登录名后,我从Chef.io获取了密钥对。这是我的刀。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.

我想你把
chef\u server\u url
supermarket.chef.io
搞混了


Chef服务器存储并服务于基础架构的所有内部资源,
超市
是社区食谱的公共存储库。

配置相同,我可以下载现有的烹饪书:'985aeb8b6b92:~zng937$刀子烹饪书网站下载chef-client_syslog从0.1.1版的烹饪书网站下载chef-client_syslog至/Users/zng937/chef-client_syslog-0.1.1.tar.gz保存的烹饪书:/Users/zng937/chef-client_syslog-0.1.1.tar.gz'有意义,但是chef_server_url在这里重要吗?我可以为此删除此url并再次运行该命令,但仍然收到相同的错误。您的http代理需要身份验证。尝试设置包含凭据的
http\u proxy
变量。e、 g.
导出http\u代理=http://user:password@服务器:port/
实际上,我已经将其设置为HTTP_代理,但现在我也使用小写字母设置了它,但仍然存在此问题。为了向此问题添加更多信息,我已在超市注册为个人贡献者。这本特别的烹饪书样本,我想添加到我的个人资料中,如果不是全局的话。因为我这样做只是为了我的测试。