我通过测试厨房在EC2驱动程序上设置私人超市 我正在使用Omnibus食谱,我已经放置了相应的食谱,如“packagecloud”“supermarket-omnibus-cookbook”和“chef-server-ingredient”。
当我正在运行厨房时,我收到以下错误:
[2015-06-12T17:13:54-04:00] WARN: remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] cannot be downloaded from https://packagecloud.io/gpg.key: 407 "Proxy Authentication Required"
================================================================================
Error executing action `create` on resource 'remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io]'
================================================================================
Net::HTTPServerException
------------------------
407 "Proxy Authentication Required"
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/packagecloud/providers/repo.rb
94: remote_file "/etc/pki/rpm-gpg/RPM-GPG-KEY-#{gpg_filename}" do
95: source ::File.join(given_base_url, node['packagecloud']['gpg_key_path'])
96: mode '0644'
97: end
我已经设置了我的http代理。但是在packagecloud cookbook中,在cookbooks / packagecloud / resources / repo.rb中设置了一个变量:
attribute :base_url, :kind_of => String, :default => "https://packagecloud.io"
我将在生产中安装此烹饪书,在那里将无法访问外部网站。我应该覆盖什么价值呢?
答案 0 :(得分:0)