-
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
require_chef_omnibus: latest reinstalls chef on each converge #387
Comments
@failshell this is the correct behavior. If you want to pin to a particular version, put that in as the value. There's no way for TK to know if a new version of Chef is available without querying the server. And it does not make sense to perform 3 HTTP queries instead of one. |
@failshell To expand on this, there are three valid values for require_chef_omnibus:
I have been caught in the past by doing things like using a fuzzy version for this field, ex. 11.10 and this will never match an installed version of chef and thus test-kitchen will always re-install chef no matter what version you have. Also using a vagrant/docker image which has an older version of chef and specifying a newer version will similarly always install chef because it'll always see a mismatch. |
Thank for you for the expansion @adnichols, I came here looking for |
In my opinion that's nothing to do with version pinning (in fact it's reinstalling) and could not be the desired behaviour. If you agree I'll submit a pull request. |
When adding that parameter to .kitchen.yml, Chef is reinstalled on each 'kitchen converge' run. Even if the latest version is installed already.
The text was updated successfully, but these errors were encountered: