- 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.
- Cinema 4D R13 Cookbook
- Linux Mint System Administrator’s Beginner's Guide
- 程序設(shè)計缺陷分析與實踐
- Getting Started with Containerization
- Julia 1.0 Programming
- Visual C# 2008開發(fā)技術(shù)詳解
- 計算機網(wǎng)絡(luò)應(yīng)用基礎(chǔ)
- RPA:流程自動化引領(lǐng)數(shù)字勞動力革命
- 大學C/C++語言程序設(shè)計基礎(chǔ)
- 項目管理成功利器Project 2007全程解析
- Grome Terrain Modeling with Ogre3D,UDK,and Unity3D
- 空間站多臂機器人運動控制研究
- HTML5 Canvas Cookbook
- C++程序設(shè)計基礎(chǔ)(上)
- Mastering MongoDB 3.x