matschaffer / knife-solo

DEPRECATED: Please consider using https://knife-zero.github.io/, ansible, or visit https://www.chef.io/ for other ideas
MIT License
786 stars 213 forks source link

I wonder how the version of chef, that knife solo prepare installs on the target, is chosen. #532

Closed janskarvall closed 6 years ago

janskarvall commented 6 years ago

I am trying to cook an Ubuntu 18.04 target, and got stuck on the Remove update-rc.d -n (dryrun) option. #6723 bug.

From what I understand, that bug is fixed in chef 14.0.8, and there is even an 14.1.12 Chef Client available at Chef downloads.

The chef version that knife solo prepare installs on the target is 13.8.5-1. I am using chefdk 2.5.3-1.

Actually, I am also uncertain if the chef binary that knife-solo installs is the Chef Client.

matschaffer commented 6 years ago

Ubuntu should get picked up by this match which uses https://github.com/matschaffer/knife-solo/blob/master/lib/knife-solo/bootstraps/linux.rb#L53-L56 and https://github.com/matschaffer/knife-solo/blob/master/lib/knife-solo/bootstraps.rb#L76-L83 the -v arg comes in via the --bootstrap-version parameter or config variable as seen in https://github.com/matschaffer/knife-solo/blob/master/lib/chef/knife/solo_prepare.rb#L21-L24

matschaffer commented 6 years ago

Hope that helps, feel free to reopen if you think I've missed something.