cookbook - Setting up private Supermarket Chef -
i setting private supermarket on ec2 driver through test kitchen using omnibus cookbook , have placed corresponding cookbooks "packagecloud" "supermarket-omnibus-cookbook" , "chef-server-ingredient" .
when running kitchen converge , getting following error :
[2015-06-12t17:13:54-04:00] warn: remote_file[/etc/pki/rpm-gpg/rpm-gpg-key-packagecloud_io] cannot downloaded 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}" 95: source ::file.join(given_base_url, node['packagecloud']['gpg_key_path']) 96: mode '0644' 97: end
i have setup http proxy . in packagecloud cookbook , variable setup in cookbooks/packagecloud/resources/repo.rb :
attribute :base_url, :kind_of => string, :default => "https://packagecloud.io"
i installing cookbook in production , there not access outer websites . value should override ?
you need configure chef use proxy:
https://docs.chef.io/config_rb_client.html
https://docs.chef.io/config_yml_kitchen.html#provisioner-specific-settings
Comments
Post a Comment