Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Chef Server 11 on Ubuntu 12.04 - complete
# run as root:
sudo bash
CHEF_HOSTNAME='...'
CHEF_VERSION='11.0.8'
UBUNTU_VERSION='12.04'
# update, upgrade, install packages
apt-get --force-yes -y update
apt-get --force-yes -y dist-upgrade
apt-get install -y ntp git-core
# some maintenance
hostname $CHEF_HOSTNAME
echo $CHEF_HOSTNAME | sudo tee /etc/hostname
# The line below could break things on EC2, it will use private IP address:
# echo -e "`ip addr list eth0 |grep \"inet \" |cut -d' ' -f6|cut -d/ -f1`\t`hostname -s` `hostname`" | tee -a /etc/hosts
# Chef 11
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/${UBUNTU_VERSION}/x86_64/chef-server_${CHEF_VERSION}-1.ubuntu.${UBUNTU_VERSION}_amd64.deb
dpkg -i ./chef-server_${CHEF_VERSION}-1.ubuntu.${UBUNTU_VERSION}_amd64.deb
chef-server-ctl reconfigure
chef-server-ctl test
# If your chef url is malformed when bootstrapping and you are getting something like this:
# http://tickets.opscode.com/browse/CHEF-4069
# your solution is described here:
# http://tickets.opscode.com/browse/CHEF-4069?focusedCommentId=34540&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-34540
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment