Using kitchen to test Policyfile


#1

Hi,

How can I have chef install Policyfile.rb which has a private supermarket specified for cookbook resolution trust the certificate or ignore that it’s self-signed? I’m trying to integrate a workflow where Jenkins checks out a cookbook, performs a chef install to create a Policy and then kicks off kitchen with the policyfile_zero provisioner. Things are breaking down for me on chef install Policyfile.rb because of the SSL failure against the private supermarket.

Thanks


#2

Add any needed internal certs to .chef/trusted_certs/ like knife ssl fetch does for the Chef Server. Everything in there will be trusted by the Policyfile downloader, or at least should.