-
Notifications
You must be signed in to change notification settings - Fork 585
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
kitchen converge reinstalls chef using the omnibus installer even if its installed #299
Comments
I've observed this behavior as well - it appears that test-kitchen doesn't properly detect an existing chef install. This hurt me in two ways:
|
For both of you what is your value of
The Note that as of the 1.0.0 release both the @adnichols For kitchen-docker, you can use the |
@fnichol testing this morning it looks like this is behaving as expected. I think the problem is that we're putting a partial version in our cookbooks (11.8 for example) which causes chef to be installed every time. If I set it to the exact version (11.8.2) or true/false it doesn't re-install. This works fine w/ kitchen-docker as well. I was already taking advantage of the provision_command in kitchen-docker so it was confusing why chef was being re-installed but I think the partial version string is the culprit. Aaron |
@adnichols Aha, I had not considered a "fuzzy" versioning usage like that. If that was supported in the |
doh! we thought we were getting clever. Thanks for the insight =) |
@fnichol The fuzzy matching does seem to work for the installer - w/ 11.8 specified we get 11.8, w/ 11.4 we get 11.4.4 or something like that. |
@adnichols Cool, I'll try to give this a spin today. It would be cool to allow |
So I issue a
kitchen converge
and it installs chef and runs the provided run list. I make a tweak to a cookbook and rerunkitchen converge
and it will reinstall chef using the omnibus installer.The text was updated successfully, but these errors were encountered: