- Docker High Performance(Second Edition)
- Allan Espinosa Russ McKendrick
- 259字
- 2021-06-24 14:32:40
Using Chef
Chef is a configuration management tool that provides a domain-specific language to model the configuration of our infrastructure. Each configuration item in our infrastructure is modeled as a resource. A resource is basically a Ruby method that accepts several parameters in a block. The following example resource describes installing the docker-engine package:
package 'docker-engine' do action :install end
These resources are then written together in Ruby source files called recipes. When running a recipe against a server (a Docker host in our case), all the defined resources are executed to reach its desired state configuration.
Some Chef recipes may depend on other supplemental items, such as configuration templates and other recipes. All this information is gathered in cookbooks together with the recipes. A cookbook is a fundamental unit of distributing configuration and policy to our servers.
We will write Chef recipes to represent the desired state configuration of our Docker hosts. Our recipes will be organized in Chef cookbooks to distribute them to our infrastructure. However, first, let's prepare our Chef environment so that we can start describing our Docker-based infrastructure in recipes. A Chef environment consists of three things:
- A Chef server
- A workstation
- A node
The next few subsections will give you a detailed description of each component. Then, we will set them up to prepare our Chef environment to be able to manage our Docker host.
- 計算機應(yīng)用
- 傳感器技術(shù)實驗教程
- 大數(shù)據(jù)專業(yè)英語
- Dreamweaver CS3網(wǎng)頁設(shè)計與網(wǎng)站建設(shè)詳解
- Learning Apache Cassandra(Second Edition)
- 深度學(xué)習(xí)中的圖像分類與對抗技術(shù)
- 數(shù)據(jù)挖掘方法及天體光譜挖掘技術(shù)
- 計算機網(wǎng)絡(luò)安全
- 計算機網(wǎng)絡(luò)原理與技術(shù)
- 單片機C語言應(yīng)用100例
- 悟透AutoCAD 2009案例自學(xué)手冊
- IBM? SmartCloud? Essentials
- Mastering DynamoDB
- Mastercam X5應(yīng)用技能基本功特訓(xùn)
- 當(dāng)產(chǎn)品經(jīng)理遇到人工智能