Start your infrastructure automation quickly and easily with Chef Workstation. Chef Workstation gives you everything you need to get started with Chef - ad hoc remote execution, remote scanning, configuration tasks, cookbook creation tools as well as robust dependency and testing software - all in one easy-to-install package.
Chef Workstation includes:
Supported Host Operating Systems:
| Platform | Version |
|---|---|
| Amazon Linux | 2 |
| Apple macOS | 10.15, 11, 12 |
| Microsoft Windows | 10, 11, Server 2012, Server 2012 R2, Server 2016, Server 2019, Server 2022 |
| Red Hat Enterprise Linux / CentOS | 7.x, 8.x |
| Ubuntu | 16.04, 18.04, 20.04 |
| Debian | 9, 10, 11 |
Minimum system requirements:
Additional Chef Workstation App Requirements:
The Chef Workstation installer must run as a privileged user.
Chef Workstation installs to /opt/chef-workstation/ on macOS / Linux and C:\opscode\chef-workstation\ on Windows. These file locations help avoid interference between these components and other applications that may be running on the target machine.
Alternately, install Chef Workstation using the Homebrew package manager:
brew install --cask chef-workstation
C:\opscode\chef-workstation\ directory.cmd.exe.Alternately, install Chef Workstation using the Chocolatey package manager:
choco install chef-workstation
“Headless” systems are configured to operate without a monitor (the “head”) keyboard, and mouse. They are usually administered remotely using protocols such as SSH or WinRM.
Chef Workstation can be installed on a headless system using the msiexec command and flags to skip the installation of the Chef Workstation Application, which requires a GUI. Run the following command in Windows PowerShell or cmd.exe, replacing MsiPath with the path of the downloaded Chef Workstation installer.
msiexec /q /i MsiPath ADDLOCAL=ALL REMOVE=ChefWSApp
Directories that are used by Chef products on Windows cannot have spaces. For example, C:\Users\User Name will not work, but C:\Users\UserName will. Chef commands may fail if used against a directory with a space in its name.
Windows will throw errors when path name lengths are too long. For this reason, it’s often helpful to use a very short top-level directory, much like what is done in UNIX and Linux. For example, Chef uses /opt/ to install Chef Workstation on macOS. A similar approach can be done on Microsoft Windows, by creating a top-level directory with a short name. For example: C:\chef.
Visit the Chef Workstation downloads page and download the appropriate package for your distribution:
Red Hat Enterprise Linux
wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/el/8/chef-workstation-21.10.640-1.el8.x86_64.rpm
Debian/Ubuntu
wget https://packages.chef.io/files/stable/chef-workstation/21.10.640/ubuntu/20.04/chef-workstation_21.10.640-1_amd64.deb
Use your distribution’s package manager to install Chef Workstation:
Red Hat Enterprise Linux:
yum localinstall chef-workstation-21.10.640-1.el8.x86_64.rpm
Debian/Ubuntu:
dpkg -i chef-workstation_21.10.640-1_amd64.deb
To verify the installation, run:
chef -v
Which returns the versions of all installed Chef tools:
Chef Workstation version: 21.10.640
Chef Infra Client version: 17.6.18
Chef InSpec version: 4.46.13
Chef CLI version: 5.4.2
Chef Habitat version: 1.6.351
Test Kitchen version: 3.1.0
Cookstyle version: 7.25.6
To upgrade from ChefDK or an earlier release of Chef Workstation, follow the instructions provided under Installing.
Run uninstall_chef_workstation in your terminal.
Use Add / Remove Programs to remove Chef Workstation.
Ubuntu, Debian, and related:
sudo dpkg -P chef-workstation
Red Hat, CentOS, and related:
sudo yum remove chef-workstation
Now that you’ve installed Chef Workstation, proceed to the Setup guide to configure your Chef Workstation installation.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/workstation/install_workstation/