Setting up private Supermarket Chef

518 views Asked by At

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 ?

1

There are 1 answers

2
Roland On