Since beginning to work with Chef, I have struggled to get Test Kitchen going on my work laptop due to the various network devices I traverse to get to the Internet.
However I am attempting to revisit it once again and hitting a wall. I am trying to go thru the basics of one of the lesson’s on Chef Rally to just try to get something basic stood up.
I was able to get past any SSL related errors associated to Berkshelf, but when I run a kitchen converge, I am getting an SSL error when trying to download/install the Chef Client inside the Kitchen.
-----> Installing Chef Omnibus (install only if missing)
_ There was an error:_
_ Exception calling “DownloadString” with “1” argument(s): “The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.”_
_ The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel._
_ The remote certificate is invalid according to the validation procedure._
Here is the current .kitchen.yml I am trying:
driver:
name: vagrant
boot_timeout: 1200
gui: false
provisioner:
name: chef_zero
verifier:
name: inspec
transport:
name: winrm
elevated: true
username: Administrator
password: Pass@word1
platforms:
- name: windows-2012R2
driver:
customize:
memory: 2048
suites:
- name: default
run_list:- recipe[learn_chef_iis::default]
verifier:
inspec_tests:- test/smoke/default
attributes:
chef_client:
config:
ssl_verify_mode: “:verify_none”
- test/smoke/default
- recipe[learn_chef_iis::default]
What am I missing to get the Chef client install to disable SSL verification when trying to do a Kitchen Converge?
Thanks