I’ve been doing builds of Chef and Cinc for 32-bit Arm systems (Raspberry Pi and similar) for awhile, so I figured I’d create a landing page for them. You may download the builds I’ve made or follow the instructions to make your own.
The 32-bit Arm build targets are Debian/Raspbian/Ubuntu on the
armv6l (Raspberry Pi 1/Zero series) and
armv7hl (Raspberry Pi 2/3/4 series). CentOS 7 RPMs are also provided for the
Building with Omnibus
The Chef client is packaged with Omnibus, which builds the application and all of its runtime dependencies with the Omnibus-Toolchain. Omnibus is built with Ruby, so the instructions start with building Ruby. These instructions assume you have already installed either Debian 9, Raspbian 10, or CentOS 7 on your system already.
There are several steps that need to be done before we get started. As the
root user update to ensure the latest packages are installed and install the prerequisites for building Ruby and Omnibus-Toolchain.
yum update yum install -y autoconf automake bison flex gcc gcc-c++ gdbm-devel gettext git kernel-devel libffi-devel libyaml-devel m4 make ncurses-devel openssl-devel patch readline-devel rpm-build wget zlib-devel
apt-get update apt-get upgrade apt-get install -y autoconf build-essential fakeroot git libreadline-dev libssl-dev zlib1g-dev
Raspbian sets the file
in an attempt to support both the 6l and 7l armhf platforms. This breaks the Chef 32-bit Arm builds on Raspbian so I have replaced this line with
echo /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so > /etc/ld.so.preload
on the Raspberry Pi 3 and 4 and
echo /usr/lib/arm-linux-gnueabihf/libarmmem-v6l.so > /etc/ld.so.preload
on the Raspberry Pi Zero.
omnibus user for performing the builds.
omnibus user has
sudo privileges and add the following file to
/etc/sudoers.d/omnibus. Feel free to use the
wheel group or more limited permissions as necessary.
omnibus ALL=(ALL) NOPASSWD: ALL
You can now
sudo su - omnibus and continue without changing users.
If you want detailed instructions for the steps for building on these platforms check out Chef 15 Build Instructions for 32-bit Arm. The build is currently Ruby 2.7.1 and does not require any additional patches. I typically run them as the
omnibus user with something similar to
nohup bash RPM-chef-cinc-16.2.44.sh & and
tail -f nohup.out to monitor the output.
GPU Memory Usage
Because my systems are used primarily has headless servers, I’ve configured them to use less GPU memory by setting
/boot/config.txt. I do this in the mattray::raspberrypi recipe used by all of my Raspbian systems.
Chef LEDs Handler Cookbook
If you’re using these builds you might be interested in the LEDs Handler cookbook. At the beginning of the Chef client run the LEDs blink a heartbeat pattern and at the end of the client run the LEDs are disabled. If the Chef client run fails the LEDs all stay on. It’s pretty simple but it’s a fun notification that the nodes are converging. It also works with Mac laptops running Linux, lighting up their keyboards when the Chef client is active.