Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.10.2
-
Fix Version/s: None
-
Component/s: Chef Client, Chef Solo
-
Labels:
-
Environment:
Developing recipes on OS X. Deploying to RHEL images
Description
When I compress (.zip or .tar.gz) my cookbooks on my OS X development machine, a *._<file name>* file of each cookbook file gets included in the compression. When I then download these cookbooks, expand the files, and run chef-solo on a RHEL/Linux machine - chef completely fails.
The reason for this is because Chef's client (chef-client or chef-solo) evaluates all files that end in .rb during its compilation phase. Since OS X ends up creating a bunch of ._<file name>.rb files that contain *binary* data instead of *ruby code*, chef completely fails.
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
The workaround I found for this issue is to run the following command before running chef-solo:
find <root chef folder>/cookbooks -name "._*" -exec rm {} \;