hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.09k stars 3.33k forks source link

Chef default configuration contains incorrect cookbook_path #976

Closed JamesHay closed 10 years ago

JamesHay commented 10 years ago

When provisioning a windows box,

After setting a staging_directory value, the default generated solo.rb contains the following:

cookbook_path ["/tmp/packer-chef-solo/cookbooks-0"] 

Given the staging_directory c:/windows/temp I expected the file to contain the following:

cookbook_path ["c:/windows/temp/cookbooks-0"] 
mitchellh commented 10 years ago

I'm unable to reproduce this as it sets the correct path for me. Can I see your Packer template?

adsk-mcnultt commented 5 years ago

I'm having the same issue on chef-solo 12.21.20

      "type": "chef-solo",
      "version": "12.21.20",
      "cookbook_paths": [
        "/tmp/os-hardening"
      ],
      "run_list": [
        "recipe[os-hardening::default]"
      ]
    }

Generated solo.rb:

user@computer:/tmp$ cat /tmp/packer-chef-solo/solo.rb
cookbook_path   ["/tmp/packer-chef-solo/cookbooks-0"]
adsk-mcnultt commented 5 years ago

11:34 $ packer version Packer v1.4.0

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.