- Chef:Powerful Infrastructure Automation
- John Ewart Matthias Marschall Earl Waud
- 262字
- 2021-07-09 21:06:35
Deploying software with Chef
There are numerous benefits to deploying your software using Chef; the primary benefit is automation—the chef-client can be run periodically, and it can execute fully-automated deployments whenever changes are made to the source code repository. Additionally, Chef stores all your configuration data, so you can avoid storing sensitive secrets and hard-coding URLs or other dynamic data in your configuration. For example, if you have an application with a database pool, and you add a new database host to your pool, Chef can use a simple search to populate the list of hosts to include in the connection pool so that it is always up to date with your infrastructure.
However, deploying software with Chef does require some coordination between your application and Chef. You will need to maintain recipes required for deploying your application, and you will also want to use Chef as the authoritative source for your configuration data, which involves writing configuration templates. By using Chef to manage your deployments, you can also generate any configuration data needed to run your software based on your infrastructure configuration; in our case, a simple config.py
file for your web.py
application. This method can also be used to manage the database.yml
file (and any other YAML files) for Rails applications, the server.yml
file for a Dropwizard application, or any other configuration files needed to run your service.
- Java編程全能詞典
- 基于C語言的程序設計
- 大數據項目管理:從規(guī)劃到實現
- Go Machine Learning Projects
- Verilog HDL數字系統(tǒng)設計入門與應用實例
- 控制與決策系統(tǒng)仿真
- 網上生活必備
- RPA(機器人流程自動化)快速入門:基于Blue Prism
- Ceph:Designing and Implementing Scalable Storage Systems
- Mastering ServiceNow Scripting
- LAMP網站開發(fā)黃金組合Linux+Apache+MySQL+PHP
- Azure PowerShell Quick Start Guide
- 寒江獨釣:Windows內核安全編程
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Photoshop CS4數碼照片處理入門、進階與提高