Chef 12.17.1 on BeagleBone Black UPDATE
Posted by mattray on November 10, 2016
Now 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 https://github.com/sstephenson/rbenv.git ~/.rbenv git clone https://github.com/sstephenson/ruby-build.git ~/.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:
. load-omnibus-toolchain.sh wget https://github.com/chef/chef/archive/v12.17.1.tar.gz 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