The Shining Path of Least Resistance

LeastResistance.Net

Posts Tagged ‘chef arm’

Chef 14 ARM on the BeagleBone Black

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
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
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.

Advertisements

Posted in chef | Tagged: | Leave a Comment »