Installing and configuring a Chef workstation
Before installing a Chef client for preparing a workstation, let's try to verify whether the Chef client has been installed:
- Execute the
chef-client -version
command to verify whether the Chef client has been installed:[mitesh@devops1 Desktop]$ chef-client -version bash: chef-client: command not found
- As you can see in the output of the previous command, the Chef client is not installed. Now, navigate to the directory where the Chef client installable is stored using the
cd
command:[mitesh@devops1 Desktop]$ cd chef/ [mitesh@devops1 chef]$ ls chef-12.9.41-1.el6.x86_64.rpmchefdk-0.13.21-1.el6.x86_64.rpm
- Run the downloaded Chef client RPM using
rpm -ivh chef-<version>.rpm ...
Get DevOps for Web Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.