From 05d46c61f7b6bdb54db625bbd8c812c846bc646c Mon Sep 17 00:00:00 2001 From: Weilu Jia Date: Wed, 12 Apr 2017 16:27:59 -0700 Subject: [PATCH] Add documentation for chef-solo version pinning --- website/source/docs/provisioners/chef-solo.html.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/chef-solo.html.md b/website/source/docs/provisioners/chef-solo.html.md index 6a27635dd..954456084 100644 --- a/website/source/docs/provisioners/chef-solo.html.md +++ b/website/source/docs/provisioners/chef-solo.html.md @@ -110,6 +110,8 @@ configuration is actually required, but at least `run_list` is recommended. able to create directories and write into this folder. If the permissions are not correct, use a shell provisioner prior to this to configure it properly. +- `version` (string) - The version of Chef to be installed. By default this is + empty which will install the latest version of Chef. ## Chef Configuration @@ -177,7 +179,7 @@ install Chef in another way. ```text curl -L https://www.chef.io/chef/install.sh | \ - {{if .Sudo}}sudo{{end}} bash + {{if .Sudo}}sudo{{end}} bash -s --{{if .Version}} -v {{.Version}}{{end}} ``` When guest_os_type is set to "windows", Packer uses the following command to