How to Install Chef Server on Ubuntu

In this quick tutorial i will let you know how to install chef server on your Linux Ubuntu 12.Chef is very emerging tool on automation of infrastructure and application deployment, in previous article understanding chef-server, client and node .You can manage large number of server using chef server and configure them using chef script(recipes) which is written in ruby.It works with Rackspace, Amazon EC2, Linode and DigitalOcean platform.In this tutorial i will let you know 3 simple steps to install chef server and use them.

Install chef-server

we have Chef Server 12 available three separate flavors:

  • Open Source Chef Server
  • On-Premises Enterprise Chef
  • Hosted Enterprised Chef

Prerequisites of chef server:

  • Allow port 443 or you can configured other port
  • Host name should be configured.(You can check using this($ hostname))

Step 1: Download deb package of chef server
sudo wget[VERSION].ubuntu.12.04_amd64.deb

Step 2: Install chef server
sudo dpkg -i chef-server_[VERSION].ubuntu.12.04_amd64.deb
Above command run on root of downloaded deb folder

Step 3: Configure chef server on machine
sudo chef-server-ctl reconfigure
You port 443 and 8000 allow to run chef server

Step 4: Varify chef working correctly
sudo chef-server-ctl test

Now You can hit http://localhost:443/other_port, it will redirect to chef server login page. The default login user/pass is admin/p@ssw0rd1, you can modify after login.