-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cookbook files not copied to vagrant box #328
Comments
Could you post your chefignore (if it exists)? |
@sethvargo Does test-kitchen care about the chefignore? My understanding was that it was completely ignored in favor of a glob pattern which can be overwritten in the kitchen yaml, which has me really curious about that message, maybe something specific to the vagrant plugin? |
Okay, I see what's going on here: the Looking at this part of the code with fresh eyes, it looks like we should add a ---
provisioner:
cookbooks_path: /other/cookbooks or ---
provisioner:
cookbooks_path:
- /common/project/cookbooks/components
- /common/project/cookbooks/profiles If we had support for this, then all cookbooks would end up in In the meantime, assuming you don't already have a site :opscode
components_dir = "/common/cookbooks/components"
profiles_dir = "/common/cookbooks/profiles"
Dir.entries(components_dir).select { |d| File.directory?(d) && !%w{. ..}.include?(d) }.each do |name|
cookbook name, path: "#{components_dir}/#{name}"
end
Dir.entries(profiles_dir).select { |d| File.directory?(d) && !%w{. ..}.include?(d) }.each do |name|
cookbook name, path: "#{profiles_dir}/#{name}"
end |
@adnichols And to clarify your question, no, Test Kitchen doesn't parse or chefignore on the workstation side. |
@fnichol So doesn't that message he's getting seem misleading? Or is that not coming from test-kitchen? |
@adnichols I'd agree it's totally misleading 😄 Unfortunetly, that's coming from |
Closing, as this isn't really a bug in Test Kitchen. If anything, it's a bug in Chef Solo, but it's more than likely a miscommunication in documentation. @fnichol is going to work on adding those docs 😄 |
.kitchen.yml
Section of log output
Addt'l info
The text was updated successfully, but these errors were encountered: