I am setting Private Supermarket on an EC2 driver through test kitchen I am using Omnibus cookbook for this , I have placed the corresponding cookbooks like "packagecloud" "supermarket-omnibus-cookbook" and "chef-server-ingredient" .
When I am running the kitchen converge , I am getting the following error :
[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
I have already setup my http proxy . But in the packagecloud cookbook , a variable is setup in cookbooks/packagecloud/resources/repo.rb :
attribute :base_url, :kind_of => String, :default => "https://packagecloud.io"
I will be installing this cookbook in production , where there will not be any access to outer websites . With what value should I override it ?
You need configure chef to use your proxy:
https://docs.chef.io/config_rb_client.html
https://docs.chef.io/config_yml_kitchen.html#provisioner-specific-settings