- From: Justin Dossey <
>
- To:
- Subject: [chef] Re: Machine resource
- Date: Mon, 5 Jan 2015 09:30:44 -0800
1. In the machine's convergence options, you can override the URL to the install.sh script (:install_sh_url, default:
http://www.opscode.com/chef/install.sh) and use a custom script instead to force the version. You could also override the :install_sh_path option to be something like "/tmp/install.sh -v 11.16.8" but that may not work forever. Finally, you could use an image that already has the chef-client version you prefer installed and chef-provisioning won't do a chef-client installation. The code that installs the chef client in most cases is in chef-provisioning/lib/chef/provisioning/install_sh.rb.
2. If the chef server URL is an https url, the ssl_verify_mode is :verify_peer. Otherwise it is :verify_none. That's all the control you get. (You can see the code for this in chef-provisioning/lib/chef/provisioning/convergence_strategy/precreate_chef_objects.rb.)
Archive powered by MHonArc 2.6.16.