The Shining Path of Least Resistance


Archive for November, 2016

Chef 12.17.1 on BeagleBone Black UPDATE

Posted by mattray on November 10, 2016

chef-logoNow that I have Chef installed, I wanted to make a new build for Chef 12.17.1. The build version of Ruby used by omnibus-toolchain has upgraded to 2.3.1, so I had to add the following steps to clean up the previous Ruby and Chef installation:

sudo apt-get remove ruby ruby-dev ruby2.1 rubygems-integration libruby2.1 ruby2.1-dev
sudo rm -rf /opt/chef/*
sudo chown omnibus:omnibus /opt/chef

And then build Ruby 2.3.1:

sudo su - omnibus
git clone ~/.rbenv
git clone ~/.rbenv/plugins/ruby-build
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
rbenv install 2.3.1
rbenv global 2.3.1
gem install bundler

Once that was in place I could go build the new Chef:

tar -xzf v12.17.1.tar.gz
cd chef-12.17.1/omnibus
bundle install --without development
bundle exec omnibus build chef -l debug

And approximately 2.5 hours later I had a new chef_12.17.1%2B20161110041345-1_armhf.deb which worked great once installed.

debian@beaglebone:~$ sudo dpkg -i /home/omnibus/chef-12.17.1/omnibus/pkg/chef_12.17.1+20161110041345-1_armhf.deb
(Reading database ... 96808 files and directories currently installed.)
Preparing to unpack .../chef_12.17.1+20161110041345-1_armhf.deb ...
Unpacking chef (12.17.1+20161110041345-1) over (12.15.27+20161013214455-1) ...
Setting up chef (12.17.1+20161110041345-1) ...
Thank you for installing Chef!

Feel free to download it: chef_12.17.1%2B20161110041345-1_armhf.deb

Posted in Uncategorized | Leave a Comment »