How to Install Chef-Server 12 on Ubuntu 14.04
Introduction
This is the very first step of my attempt to break down our monolithic project code into micro-services. Opsworks is what we are using, but the deploy experience is far from comfortable. There is just too much magic behind "Stack Layer". A radical move gives us full control, which is awesome.
Steps
provision an ec2 instance. I use t2.small in my example; but it is recommended by Chef documentation that > Chef server should have at least 4 cores and 4 GB of RAM. It should also have a 64-bit operating system.
cd ~; wget https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.0.8-1_amd64.deb
sudo dpkg -i chef-server-core_12.0.8-1_amd64.deb
I ran into some error when hostname was not set. so i suggest add 127.0.0.1 HOST_NAME in /etc/hosts where HOST_NAME is from hostname -f
sudo chef-server-ctl reconfigure
Additionally, there's a UI the same as what we see on https://manage.chef.io/ sudo chef-server-ctl install opscode-manage; sudo opscode-manage-ctl reconfigure; sudo chef-server-ctl reconfigure. Done.
Conclusion
After only a few minutes, we have a fully-working chef server. Creating a user/organization can happen on the UI; so is downloading the ssh private key. Next let's see how knife helps us with deploy.
Reference: How To Set Up a Chef 12 Configuration Management System on Ubuntu 14.04 Servers












