Chef 简明教程
Chef - Architecture
Chef 采用三层客户机服务器模式,其中工作单元(如食谱)均在 Chef 工作站上开发。从命令行实用程序(如刀)中,它们上传到 Chef 服务器,并且架构中呈现的所有节点均在 Chef 服务器中注册。
Chef works on a three-tier client server model wherein the working units such as cookbooks are developed on the Chef workstation. From the command line utilities such as knife, they are uploaded to the Chef server and all the nodes which are present in the architecture are registered with the Chef server.

为了获得到位的工作 Chef 基础设施,我们需要依次设置多个内容。
In order to get the working Chef infrastructure in place, we need to set up multiple things in sequence.
在以上设置中,我们有以下组件。
In the above setup, we have the following components.
Chef Workstation
这是所有配置开发所在的位置。Chef 工作站安装在本地计算机上。本教程的后续章节将讨论详细的配置结构。
This is the location where all the configurations are developed. Chef workstation is installed on the local machine. Detailed configuration structure is discussed in the later chapters of this tutorial.
Chef Server
这作为 Chef 设置的集中工作单元,所有配置文件在开发后都上传到此处。有不同类型的 Chef 服务器,有些是托管的 Chef 服务器,有些则是在场内构建的。
This works as a centralized working unit of Chef setup, where all the configuration files are uploaded post development. There are different kinds of Chef server, some are hosted Chef server whereas some are built-in premise.
Chef Nodes
它们是将由 Chef 服务器管理的实际计算机。所有节点可以根据要求具有不同类型的设置。Chef 客户端是所有节点的关键组件,有助于在 Chef 服务器和 Chef 节点之间建立通信。Chef 节点的其他组件是 Ohai,该组件有助于获取特定节点的当前状态。
They are the actual machines which are going to be managed by the Chef server. All the nodes can have different kinds of setup as per requirement. Chef client is the key component of all the nodes, which helps in setting up the communication between the Chef server and Chef node. The other components of Chef node is Ohai, which helps in getting the current state of any node at a given point of time.