- 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.
- Microsoft Power BI Quick Start Guide
- LabVIEW虛擬儀器從入門到測(cè)控應(yīng)用130例
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開發(fā)
- 商戰(zhàn)數(shù)據(jù)挖掘:你需要了解的數(shù)據(jù)科學(xué)與分析思維
- Photoshop CS4經(jīng)典380例
- 大數(shù)據(jù)技術(shù)入門(第2版)
- JMAG電機(jī)電磁仿真分析與實(shí)例解析
- JBoss ESB Beginner’s Guide
- SharePoint 2010開發(fā)最佳實(shí)踐
- 工業(yè)機(jī)器人現(xiàn)場(chǎng)編程(FANUC)
- DevOps Bootcamp
- TensorFlow Reinforcement Learning Quick Start Guide
- 筆記本電腦維修90個(gè)精選實(shí)例
- Mastering pfSense
- 大數(shù)據(jù):從基礎(chǔ)理論到最佳實(shí)踐