Skip to content

Instantly share code, notes, and snippets.

@pcreux
Created September 7, 2010 19:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pcreux/568876 to your computer and use it in GitHub Desktop.
Save pcreux/568876 to your computer and use it in GitHub Desktop.
Bash script to install chef client on blank ubuntu 10.04 - lucid
#/bin/bash
# From http://wiki.opscode.com/display/chef/Package+Installation+on+Debian+and+Ubuntu
# Run: wget http://gist.github.com/raw/568876/install_chef_client.sh && bash install_chef_client.sh
echo "Add the Opscode APT Repository"
echo 'deb http://apt.opscode.com/ lucid main' | sudo tee /etc/apt/sources.list.d/opscode.list
sudo apt-get update
echo "Install curl"
sudo apt-get install curl
echo "Add the GPG Key and Update Index"
curl http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add -
sudo apt-get update
echo "Install Chef"
sudo apt-get install chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment