The Shining Path of Least Resistance

LeastResistance.Net

Chef 14 ARM on the BeagleBone Black – UPDATED 14.5.33

Posted by mattray on April 4, 2018

Chef 14 is now available and there are a few minor updates from the Chef 13 ARM build. Looking forward to the “official” ARM builds, but for now here’s what needed to be updated.

Ruby 2.5.0

Chef 14 is built with Ruby 2.5.0, so the first step was to build the latest. I already had an omnibus user and rbenv installed, so it was simply:

sudo su - omnibus
bash
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv install 2.5.0
rbenv global 2.5.0
gem install bundler

omnibus-toolchain

With Ruby 2.5.0 installed, I decided to update the omnibus-toolchain to the current release.

git clone https://github.com/chef/omnibus-toolchain.git
cd omnibus-toolchain
bundle install --without development
bundle exec omnibus build omnibus-toolchain
dpkg -i pkg/omnibus-toolchain*deb
cd

Chef 14.0.190

With omnibus-toolchain built with Ruby 2.5.0 I could now build Chef 14.

export PATH="$HOME/.rbenv/bin:/opt/omnibus-toolchain/bin:$PATH"
wget https://github.com/chef/chef/archive/v14.0.190.tar.gz
tar -xzvf v14.0.190.tar.gz
cd chef-14.0.190/omnibus/
bundle install --without development
bundle exec omnibus build chef -l debug

A few hours later I had my ARM Chef client .deb built. As the root user I installed it and ran it.

dpkg -i chef_14.0.190+20180403233706-1_armhf.deb
...
Thank you for installing Chef!

You may download the chef_14.0.190+20180403233706-1_armhf.deb or follow these instructions to build your own package for your platform.

UPDATE

Chef 14.1.1 is now available, I’ve built new 14.1.1 ARM packages updating the above to Ruby 2.5.1, the latest omnibus-toolchain and the Chef 14.1.1 source.

chef_14.1.1_armhf.deb

UPDATE 2

Chef 14.4.56 is now the latest stable build, so I’ve built new ARM packages. Ruby 2.5.1, omnibus-toolchain 1.1.90 and Chef 14.4.56 from source.

chef_14.4.56_armhf.deb

UPDATE 3

Chef 14.5.33 is the latest stable build, so new ARM packages are available. Ruby 2.5.1, omnibus-toolchain 1.1.90 and Chef 14.5.33 from source.

chef_14.5.33_armhf.deb

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: