Closed zedtux closed 5 years ago
I also need this pr!
As mentioned on https://github.com/matschaffer/knife-solo#deprecated I don't really intend on making any further releases of knife-solo.
You're welcome to do whatever you'd like with the code, but it seems the chef-solo flow has diverged quite a bit with the recent chef relicensing.
I haven't used chef actively in well over 5 years now so don't think I can reliably continue the project.
Each time I'm trying to
cook
on my Debian node, I have the following error :This is due to the fact that :
sudo
by default, but this is workaround-ablechef-solo --version
is not outputting what theChef::Knife::SoloCook.chef_version
method expects.In the
awk
command,knife-solo
is expecting to have an output similar toChef: 15.0.300
, while on my node thechef-solo --version
command outputsChef Infra Client: 15.0.300
.In the case I didn't nothing wrong and the command output is fine, I then suggest the to change the
cmd
to the following :So that the
Chef:
andChef Infra Client:
are both handled and knife-solo works in both cases.If this is fine for you, I can open a PR.