厨师库的目的是什么? [英] what's the purpose of chef repository?

查看:85
本文介绍了厨师库的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是厨师的新手。安装后,文档提示我从git克隆一个Chef存储库。我想知道厨师库的目的是什么。

I am a newbie for Chef. After installing, the document prompt me to clone a chef repository from git. I am wondering what's the purpose of chef repository. If I only need to use it as a chef client.

推荐答案

chef存储库为组织所有工件(菜谱,食谱,角色等)与厨师一起使用,以描述并最终配置您的基础架构。当您创建自己的食谱,修改现有食谱并将其上传到厨师服务器时,在开发时就需要该存储库。将存储库视为用于以代码形式实现基础结构的工作区。

The chef repository gives structure to organizing all the artifacts (cookbooks, recipes, roles, etc.) that are used with chef to describe and ultimately configure your infrastructure. The repository is needed at development time when you create your own cookbooks, modify existing ones and upload them to your chef server. Think of the repository as a workspace for implementing your infrastructure as code.

厨师文档将开发机器称为厨师工作站。工作站具有一个或多个用于管理基础结构工件和刀工具以与厨师服务器进行交互的存储库。

The chef documentation refers to a development machine as a chef workstation. A workstation has one or more repositories for managing the infrastructure artifacts and the knife tool to interact with a chef server.

在由厨师管理的常规节点上不需要存储库和刀具。那就是厨师客户所需要的。相反,工作站用于管理厨师。存储库和刀具是用于此目的的工具。

The repository and knife are not needed on a regular node that is managed by chef. That's where the chef client is all that's needed. Conversely, a workstation is used to manage chef. The repository and knife are tools for that.

可以在存储库中工作的诸如角色和数据包之类的东西也可以通过Chef Server Web UI定义,但是那么您将没有版本控制的工作历史记录。对于菜谱,即使您不需要修改任何菜谱,您仍然需要使用小刀将它们从存储库上载到服务器。

Some things like roles and databags that you can work on in a repository you could also define with the chef server web UI, but then you'd not have a version controlled history of your work. For cookbooks, even if you don't need to modify any, you still need to upload them to the server from a repository using knife.

有关更多信息,请参阅Chef Wiki。信息:工作站存储库

See the chef wiki for more information: workstation, repository, knife.

这篇关于厨师库的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆