From 2ae1b83b15e8b00029b22e8152c795420756ed09 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Fri, 7 Oct 2016 17:24:28 -0700 Subject: [PATCH] change chef-solo provisioner staging directory Have the staging directory be called `packer-chef-solo`, which is what is given in docs. Closes #3486 --- provisioner/chef-solo/provisioner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provisioner/chef-solo/provisioner.go b/provisioner/chef-solo/provisioner.go index 27bdcd743..3ff0bba1d 100644 --- a/provisioner/chef-solo/provisioner.go +++ b/provisioner/chef-solo/provisioner.go @@ -29,12 +29,12 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{ provisioner.UnixOSType: guestOSTypeConfig{ executeCommand: "{{if .Sudo}}sudo {{end}}chef-solo --no-color -c {{.ConfigPath}} -j {{.JsonPath}}", installCommand: "curl -L https://omnitruck.chef.io/install.sh | {{if .Sudo}}sudo {{end}}bash", - stagingDir: "/tmp/packer-chef-client", + stagingDir: "/tmp/packer-chef-solo", }, provisioner.WindowsOSType: guestOSTypeConfig{ executeCommand: "c:/opscode/chef/bin/chef-solo.bat --no-color -c {{.ConfigPath}} -j {{.JsonPath}}", installCommand: "powershell.exe -Command \". { iwr -useb https://omnitruck.chef.io/install.ps1 } | iex; install\"", - stagingDir: "C:/Windows/Temp/packer-chef-client", + stagingDir: "C:/Windows/Temp/packer-chef-solo", }, }