The knife server --distro "chef11/rhel" ... command eventually fails with the following error:
ERROR: RuntimeError: SSH exited with code 127 for [echo 'chefchef' | knife configure --initial --server-url http://127.0.0.1:8000 --user root --repository "" --admin-client-name chef-webui --admin-client-key /etc/chef-server/chef-webui.pem --validation-client-name chef-validator --validation-key /etc/chef-server/chef-validator.pem --defaults --yes 2>> /tmp/chef-server-install-errors.txt]
The problem appears to be that the shell can't find the knife binary. I would hazard a guess that the solution is to either reference the full path to the knife binary, or (probably preferable) updating the $PATH environment variable to include the installed Chef's binary path (/opt/chef-server/bin).
I'm considering submitting a PR for the first solution, but it might be worth figuring out why the $PATH environment variable isn't updated post-Chef install.
The
knife server --distro "chef11/rhel" ...command eventually fails with the following error:The problem appears to be that the shell can't find the
knifebinary. I would hazard a guess that the solution is to either reference the full path to the knife binary, or (probably preferable) updating the$PATHenvironment variable to include the installed Chef's binary path (/opt/chef-server/bin).I'm considering submitting a PR for the first solution, but it might be worth figuring out why the
$PATHenvironment variable isn't updated post-Chef install.