【发布时间】:2015-06-14 01:53:59
【问题描述】:
我正在通过测试厨房在 EC2 驱动程序上设置 Private Supermarket 我为此使用了 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"
我将在生产环境中安装这本食谱,在那里将无法访问外部网站。我应该用什么值覆盖它?
【问题讨论】:
标签: chef-infra cookbook