#!/bin/bash
if [ ! -x /usr/bin/chef-client ] ; then
  URL=http://ftp.osuosl.org/pub/osl/openpower/rpms/chef-12.10.24-1.el7.$(uname -m).rpm
  if type wget > /dev/null; then
    wget $URL -O chef.rpm
  elif type curl > /dev/null ; then
    curl -L $URL -o chef.rpm
  fi
  rpm -iUh chef.rpm
  rm -f chef.rpm
fi
