O'Reilly logo

DevOps for Web Development by Mitesh Soni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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
    

  2. 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
    

  3. Run the downloaded Chef client RPM using rpm -ivh chef-<version>.rpm ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required