Created
August 13, 2014 03:47
-
-
Save jmahowald/b05fdb862b278e61086e to your computer and use it in GitHub Desktop.
Bootstrap chef script for centos to use chef dk instead of chef omnibus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install wget -y | |
export RPM_VERSION=chefdk-0.2.0-2.el6.x86_64 | |
export CHEF_RPM=$RPM_VERSION.rpm | |
if rpm -qa|grep $RPM_VERSION; then | |
echo "Already have chef dk installed" | |
else | |
wget --no-check-certificate https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/$CHEF_RPM | |
sudo rpm -iU $CHEF_RPM | |
chef -v | |
rm $CHEF_RPM | |
echo 'export PATH=/opt/chefdk/embedded/bin:$PATH' > /etc/profile.d/chef.sh | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment