Install and Configure Chef Workstation and CDK

In the last article, we discussed about Install Ruby with RVM on CentOS


In this article we will install and configure Chef Workstation and Chef Development Kit



Chef  workstation is a very important component in the overall architecture. It is configured to execute various Chef command-line tools that synchronize with a Chef server, cookbooks, chef-repo, interact with nodes etc. Chef workstation is the place from which administrator or configuration manager manages resources. Configuration manager can create cookbooks or download community cookbooks, install and configure knife plugins, use command line tools, bootstrap the node, etc.

Install and Configure Chef Workstation and Chef Development Kit


Chef Workstation needs access to Internet so it can connect with Hosted Chef

a. CentOS Machine will work in this installation (Proxy details for Internet access if direct Internet access is not available)
b. Chef Client - The agent to connect to your Chef Server - https://downloads.chef.io/chef-client/redhat/

64 bit Red Hat Enterprise Linux 6 i686Red Hat Enterprise Linux 7 (Red Hat Enterprise Linux and CentOS 7) https://packages.chef.io/stable/el/7/chef-12.8.1-1.el7.x86_64.rpm

64 bit Red Hat Enterprise Linux 6 x86_64 (Red Hat Enterprise Linux and CentOS 6) https://packages.chef.io/stable/el/6/chef-12.8.1-1.el6.x86_64.rpm
32 bit Red Hat Enterprise Linux 6 i686 (Red Hat Enterprise Linux and CentOS 6) https://packages.chef.io/stable/el/6/chef-12.8.1-1.el6.i386.rpm

Install it using rpm –ivh <chef-client rpm downloaded>

rpm –ivh chef-12.8.1-1.el7.x86_64.rpm
or
rpm –ivh chef-12.8.1-1.el7.x86_64.rpm

Verify Chef Client by executing chef-client –v


Copy knife.rb, user.pem, and validator.pem from starter kit to /root/.chef


Install Chef Development kit


1) Chef Development Kit – To Accelerate Chef Workflow - https://downloads.chef.io/chef-dk/


Red Hat Enterprise Linux 6 (Red Hat Enterprise Linux and CentOS 6) https://packages.chef.io/stable/el/6/chefdk-0.12.0-1.el6.x86_64.rpm

Red Hat Enterprise Linux 7 (Red Hat Enterprise Linux and CentOS 7)  https://packages.chef.io/stable/el/7/chefdk-0.12.0-1.el7.x86_64.rpm

Install it using rpm –ivh based on your operating system


rpm –ivh chefdk-0.12.0-1.el6.x86_64.rpm

or
rpm –ivh chefdk-0.12.0-1.el7.x86_64.rpm

In the Next Article we will  discuss about Chef: Install Knife-azure Plugin

Labels: , , , , ,