Closed aep closed 3 years ago
I suspect the version output of chef has changed since 0.10 and the knife solo code doesn’t know how to parse it.
This gem is deprecated so I don’t intend to fix it. If you’re interested in taking over maintenance let me know.
yeah that makes sense.
btw switching to ansible was what i really should have done. It uses this workflow out of the box without external hacks
Good move 👍
the package installed by solo prepare ( chef/now 16.10.17-1 amd64 ) installs the chef binary to /opt/chef/bin, which is not in PATH.
but even after adding it to PATH using /etc/profile , it won't find it, likely knife isnt using a n interactive shell so i tried adding it to bashrc (dangerous) but that also wont work
the next problem is that the awk is wrong because --version says "Chef Infra Client: 16.10.17" while awk matches "Chef:"
this is Ubuntu 20.10