Chef on raspberry pi


I have a small server farm, built out of Raspberry PI 3 servers, all running Ubuntu-MATE 16.04 for arm7hf. I have installed the Chef DK on my Ubuntu-MATE 16.04-amd64 dev box, and am attempting to run the tutorials (Configure a package and service) on an RPI system attached via ssh. I have installed the CHEF gem on the RPi, and have a chef-client command working.

My problem is that when I prefix the chef-client command with sudo, the system cannot find the chef-client command.

Does anyone have any experience with using the chef gem?


Ubuntu’s sudo is compiled with an option where it resets the PATH and there is no way around it. Use the full path to the executable or find another workaround.


That’s probably because root’s PATH environment variable probably doesn’t include wherever the chef-client binary got installed to (I’m guessing /usr/local/bin, which often is dropped from root’s PATH in distros). If you can run it as a regular user, just run “sudo which chef-client”.


I am running raspberry pi fleet for various home automation (weather
station, 3d printer, reeftank) and i build some of the chef gears there,
you can find them here: . Chef
debian is fpm based. I could’nt get omnibus or stock chef gem working with
pi, last time I checked. I bet we could fix the issues on building omnibus
on pi, but it will require some time. I’ll try to upload a newer chef build
sometime during christmas vacation.

Let us know if you need any help,

p.s. Ryan Hass has also done some work on ARM + chef using raspberry pi. He
might have some information as well



Not directly related to your question, but I did a blog post on building
the Chef client on ARM here:

Matt Ray
Manager, Solutions Architect - APJ :: Chef
AUS: +61 457 231 372
US: +1 512 731 2218
mattray :: GitHub :: IRC :: Slack :: Twitter